]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/hairpin.cc
release: 1.3.144
[lilypond.git] / lily / hairpin.cc
index 6471957ecf240180bfe8f151d68f04b6e8fb89fc..c3b9fe33f9b97060fcc63a934b9fe8908b17ec96 100644 (file)
@@ -70,6 +70,9 @@ Hairpin::brew_molecule (SCM smob)
                make the padding a little smaller, here.
              */
              Interval e =b->extent (common, X_AXIS);
+             if (e.empty_b ())
+               e = Interval (0,0) + b->relative_coordinate (common, X_AXIS);
+             
              x_points[d] = e.center () - d  * padding /3; // ugh.
            }
          else