lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix calculation of X-extent of AccidentalPlacement. (issue 94980043)


From: david . nalesnik
Subject: Fix calculation of X-extent of AccidentalPlacement. (issue 94980043)
Date: Sat, 03 May 2014 19:10:00 +0000

Reviewers: ,

Message:
Please review.  Thanks!

Description:
Fix calculation of X-extent of AccidentalPlacement.

Previously, the offsets used for staggered placement of accidentals
were not included in the calculation of the width of AccidentalPlacement
grobs.

Please review this at https://codereview.appspot.com/94980043/

Affected files (+1, -1 lines):
  M lily/accidental-placement.cc


Index: lily/accidental-placement.cc
diff --git a/lily/accidental-placement.cc b/lily/accidental-placement.cc
index f954defc652d89dd9cc354051c76d165fb399cb1..6fa61e967de6a74cf0e62cf89848bab3bbc1259a 100644
--- a/lily/accidental-placement.cc
+++ b/lily/accidental-placement.cc
@@ -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;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]