}
}
+ // So far, we've computed the translates for all the non-empty elements.
+ // Here, we set the translates for the empty elements: an empty element
+ // gets the same translation as the last non-empty element before it.
vector<Real> all_translates;
-
if (!translates.empty ())
{
Real w = translates[0];
Interval staff_refpoints;
extract_grob_set (this, "spaceable-staves", staves);
for (vsize i = 0; i < staves.size (); i++)
- staff_refpoints.add_point (staves[i]->relative_coordinate (this, Y_AXIS));
+ if (staves[i]->is_live ())
+ staff_refpoints.add_point (staves[i]->relative_coordinate (this, Y_AXIS));
pl->set_property ("staff-refpoint-extent", ly_interval2scm (staff_refpoints));
pl->set_property ("system-grob", this->self_scm ());