]> git.donarmstrong.com Git - lilypond.git/commitdiff
(set_chord_outlines): set outline for line
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 26 Aug 2005 00:31:04 +0000 (00:31 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 26 Aug 2005 00:31:04 +0000 (00:31 +0000)
break case too.

ChangeLog
lily/tie-column.cc

index 9927fc4555c6db92d6dcd3677ab9a98f81496313..1088f5b53d0c1ef9fd2ecb82a8aa900fc610ceea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-26  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/tie-column.cc (set_chord_outlines): set outline for line
+       break case too.
+       
 2005-08-25  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * lily/pango-font.cc (text_stencil): don't translate glyphs in
index cd2eed2b8d7015d6991dde75694ff038e727d624..b5851e5a8ea3a16533ef5dcb8b2cd70b2d28518c 100644 (file)
@@ -126,6 +126,17 @@ set_chord_outlines (Drul_array< Array<Skyline_entry> > *skyline_drul,
        }
 
       (*skyline_drul)[d] = empty_skyline (-d);
+      
+      Spanner *tie = dynamic_cast<Spanner*> (ties[0]);
+      if (tie->get_bound (d)->break_status_dir ())
+       {
+         Real x = robust_relative_extent (tie->get_bound (d),
+                                          common,
+                                          X_AXIS)[-d];
+
+         (*skyline_drul)[d].elem_ref (0).height_ = x; 
+       }
+         
       for (int i = 0; i < boxes.size (); i++)
        insert_extent_into_skyline (&skyline_drul->elem_ref (d),
                                    boxes[i], Y_AXIS, -d);