From 920eedbe36b465e8a17b30d6b41474a73197f217 Mon Sep 17 00:00:00 2001 From: Neil Puttock Date: Mon, 7 Mar 2011 00:28:27 +0000 Subject: [PATCH] Possible fix for #1506. --- lily/staff-symbol.cc | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lily/staff-symbol.cc b/lily/staff-symbol.cc index d1629df..8cf7be4 100644 --- a/lily/staff-symbol.cc +++ b/lily/staff-symbol.cc @@ -22,6 +22,7 @@ #include "lookup.hh" #include "dimensions.hh" #include "output-def.hh" +#include "paper-column.hh" #include "warn.hh" #include "item.hh" #include "staff-symbol-referencer.hh" @@ -66,12 +67,12 @@ Staff_symbol::print (SCM smob) { Item *x = sp->get_bound (d); - span_points[d] = x->relative_coordinate (common, X_AXIS); - if (!x->break_status_dir () + span_points[d] = + ((!x->break_status_dir () && !x->extent (x, X_AXIS).is_empty ()) - span_points[d] += x->extent (x, X_AXIS)[d]; + ? Paper_column::break_align_width (x, ly_symbol2scm ("break-alignment"))[d] + : x->relative_coordinate (common, X_AXIS)); } - span_points[d] -= d* t / 2; } while (flip (&d) != LEFT); -- 1.7.1