2006-03-16 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/rest.cc (y_offset_callback): only use direction if
+ staff-position wasn't set before.
+
* lily/bar-number-engraver.cc: add support for
barNumberAlignSymbol.
add ADD_ACKNOWLEDGER() call for break_aligned. Fixes bar-number-breathe
Real amount = robust_scm2double (me->get_property ("staff-position"), 0)
* 0.5 * ss;
+ bool position_override = amount;
+
if (line_count % 2)
{
if (duration_log == 0 && line_count > 1)
if (dot && duration_log >= -1 && duration_log <= 1) // UGH again.
{
dot->set_property ("staff-position",
- scm_from_int ((duration_log == 0) ? -1 : 1));
+ scm_from_int ((duration_log == 0) ? -1 : 1));
}
- amount += 2 * ss * get_grob_direction (me);;
+ if (!position_override)
+ amount += 2 * ss * get_grob_direction (me);;
return scm_from_double (amount);
}