]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/ottava-bracket.cc
(print): use coordinate, not (0,0) for
[lilypond.git] / lily / ottava-bracket.cc
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])