]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix calculation of X-extent of AccidentalPlacement.
authorDavid Nalesnik <david.nalesnik@gmail.com>
Mon, 14 Apr 2014 21:54:43 +0000 (16:54 -0500)
committerDavid Nalesnik <david.nalesnik@gmail.com>
Tue, 13 May 2014 14:48:48 +0000 (09:48 -0500)
Previously, the offsets used for staggered placement of accidentals
were not included in the calculation of the width of AccidentalPlacement
grobs.

lily/accidental-placement.cc

index f954defc652d89dd9cc354051c76d165fb399cb1..6fa61e967de6a74cf0e62cf89848bab3bbc1259a 100644 (file)
@@ -418,7 +418,7 @@ position_apes (Grob *me,
         {
           Real mh = ape->horizontal_skylines_[d].max_height ();
           if (!isinf (mh))
-            width.add_point (mh);
+            width.add_point (mh + offset);
         }
 
       last_offset = offset;