]> git.donarmstrong.com Git - lilypond.git/commitdiff
(print): use coordinate, not (0,0) for
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 4 May 2004 21:24:23 +0000 (21:24 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 4 May 2004 21:24:23 +0000 (21:24 +0000)
empty extent. This fixes ottava brackets on rests. (backportme)

ChangeLog
lily/ottava-bracket.cc

index 44e105645b41e7e59cfab8969d07d716532912ea..144bd546680f19a9e8515f120d2bbbec5643f7f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-05-04  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * 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.
index 3a13fdcf0cc93826158dcbfa49016ba95a032f57..c877f2ce59b118f5361774d05afc04a44bc0d709 100644 (file)
@@ -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])