source file of the GNU LilyPond music typesetter
- (c) 2000--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2000--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "spaceable-grob.hh"
Spaceable_grob::add_spring (Grob *me, Grob *other,
Real distance, Real inverse_strength)
{
- if (distance <= 0.0 || inverse_strength < 0.0)
+ if (distance < 0.0 || inverse_strength < 0.0)
{
programming_error ("adding reverse spring, setting to unit");
distance = 1.0;
}
-void
-Spaceable_grob::remove_interface (Grob *me)
-{
- me->set_object ("minimum-distances", SCM_EOL);
- me->set_object ("spacing-wishes", SCM_EOL);
- me->set_object ("ideal-distances", SCM_EOL);
-}
ADD_INTERFACE (Spaceable_grob,
"A layout object that takes part in the spacing problem. ",