/* If we have a NonMusical column on the right, we measure the ideal distance
to the bar-line (if present), not the start of the column. */
- if (!Paper_column::is_musical (right_col) && !skys[RIGHT].is_empty ())
+ if (!Paper_column::is_musical (right_col)
+ && !skys[RIGHT].is_empty ()
+ && to_boolean (me->get_property ("space-to-barline")))
{
Grob *bar = Pointer_group_interface::find_grob (right_col,
ly_symbol2scm ("elements"),
{
Real shift = bar->extent (right_col, X_AXIS)[LEFT];
ideal -= shift;
- min_desired_space -= shift;
+ min_desired_space -= max (shift, 0.0);
}
+ else
+ ideal -= right_col->extent (right_col, X_AXIS)[RIGHT];
}
ideal = max (ideal, min_desired_space);
"right-items "
"same-direction-correction "
"stem-spacing-correction "
+ "space-to-barline "
);