]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.39
authorfred <fred>
Tue, 26 Mar 2002 23:10:03 +0000 (23:10 +0000)
committerfred <fred>
Tue, 26 Mar 2002 23:10:03 +0000 (23:10 +0000)
lily/side-position-interface.cc

index c76b0a09b82d7f69e5e25c1b572ec871028b04b7..2d29cf9e330612b137c013309a09a6d8c39c910b 100644 (file)
@@ -129,7 +129,13 @@ Side_position_interface::aligned_on_self (Dimension_cache const *c)
     {
       Direction d = to_dir (align);
       Interval ext(elm->extent (ax));
-      if (d)
+
+      if (ext.empty_b ())
+       {
+         programming_error ("I'm empty. Can't align on self");
+         return 0.0;
+       }
+      else if (d)
        {
          return - ext[d];
        }