From: hanwen Date: Tue, 4 May 2004 21:24:23 +0000 (+0000) Subject: (print): use coordinate, not (0,0) for X-Git-Tag: release/2.3.9^2~253 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=772b22500e0e1ed0af12d58f84be7ceb3f40a916;p=lilypond.git (print): use coordinate, not (0,0) for empty extent. This fixes ottava brackets on rests. (backportme) --- diff --git a/ChangeLog b/ChangeLog index 44e105645b..144bd54668 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-05-04 Han-Wen Nienhuys + * lily/ottava-bracket.cc (print): use coordinate, not (0,0) for + empty extent. This fixes ottava brackets on rests. (backportme) + * make/lilypond.redhat.spec.in (Group): ln png files for info. * lily/piano-pedal-engraver.cc (create_text_grobs): core dump fix. diff --git a/lily/ottava-bracket.cc b/lily/ottava-bracket.cc index 3a13fdcf0c..c877f2ce59 100644 --- a/lily/ottava-bracket.cc +++ b/lily/ottava-bracket.cc @@ -93,8 +93,10 @@ Ottava_bracket::print (SCM smob) } if (ext.is_empty ()) - ext = Interval (0,0); - + { + Real x = b->relative_coordinate (common, X_AXIS); + ext = Interval (x,x); + } span_points[d] = (broken [d]) ? b->extent (common, X_AXIS)[-d] : ext[d]; if (broken[d])