]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4102: misaligned composer in LP 2.19.14
authorDavid Kastrup <dak@gnu.org>
Mon, 15 Sep 2014 16:04:33 +0000 (18:04 +0200)
committerDavid Kastrup <dak@gnu.org>
Sat, 20 Sep 2014 06:51:27 +0000 (08:51 +0200)
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.

lily/stencil.cc

index 20c81bedfddaf8be1b35fde83f1e099d40189db2..331dde28310c9f16e8fa977160e7fe448d48a1d0 100644 (file)
@@ -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