/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2005--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 2005--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
}
else if (Staff_spacing::has_interface (sp))
{
- Spring spring = Staff_spacing::get_spacing (sp, rc);
+ Spring spring = Staff_spacing::get_spacing (sp, rc, 0.0);
dists[d] = max (dists[d], spring.min_distance ());
}
Spacing_options *options)
{
vector<Grob *> newcols;
-
for (vsize i = 0; i < cols->size (); i++)
{
Grob *c = cols->at (i);
/*
Set distance constraints for loose columns
*/
- Drul_array<Item *> next_door (dynamic_cast<Item *> (cols->at (i - 1)),
- dynamic_cast<Item *> (cols->at (i + 1)));
+ Drul_array<Item *> next_door (dynamic_cast<Item *> (left_neighbor),
+ dynamic_cast<Item *> (right_neighbor));
set_distances_for_loose_col (me, c, next_door, options);
}
}
- if (!loose)
+ else
newcols.push_back (c);
}