From: David Kastrup Date: Mon, 15 Sep 2014 16:04:33 +0000 (+0200) Subject: Issue 4102: misaligned composer in LP 2.19.14 X-Git-Tag: release/2.19.15-1~22 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7801babeb37b4cbd7f56598629925c34f5304078;p=lilypond.git Issue 4102: misaligned composer in LP 2.19.14 This problem surfaced in the wake of the fix for issue 3855. It is due to Stencil::translate not moving an empty expression even if it has non-empty extents so that \markup fill-line { "" "" "composer" } which assembles a line piece by piece and determining the offset of the next piece by looking at the end of the assemblage so far lost the offset between the first and second "" in the line. --- diff --git a/lily/stencil.cc b/lily/stencil.cc index 20c81bedfd..331dde2831 100644 --- a/lily/stencil.cc +++ b/lily/stencil.cc @@ -179,8 +179,7 @@ Stencil::translate (Offset o) expr_ = scm_list_n (ly_symbol2scm ("translate-stencil"), ly_offset2scm (o), expr_, SCM_UNDEFINED); - if (!is_empty ()) - dim_.translate (o); + dim_.translate (o); } void