From: Han-Wen Nienhuys Date: Fri, 26 Aug 2005 00:31:04 +0000 (+0000) Subject: (set_chord_outlines): set outline for line X-Git-Tag: release/2.7.8~13 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fbdddd1d2d87006023cabe222e3fd29f1386db4d;p=lilypond.git (set_chord_outlines): set outline for line break case too. --- diff --git a/ChangeLog b/ChangeLog index 9927fc4555..1088f5b53d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-26 Han-Wen Nienhuys + + * lily/tie-column.cc (set_chord_outlines): set outline for line + break case too. + 2005-08-25 Han-Wen Nienhuys * lily/pango-font.cc (text_stencil): don't translate glyphs in diff --git a/lily/tie-column.cc b/lily/tie-column.cc index cd2eed2b8d..b5851e5a8e 100644 --- a/lily/tie-column.cc +++ b/lily/tie-column.cc @@ -126,6 +126,17 @@ set_chord_outlines (Drul_array< Array > *skyline_drul, } (*skyline_drul)[d] = empty_skyline (-d); + + Spanner *tie = dynamic_cast (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);