]> git.donarmstrong.com Git - lilypond.git/commitdiff
Let Stencil::align_to abort only if the stencil is empty in the alignment axis
authorDavid Kastrup <dak@gnu.org>
Sun, 28 Apr 2013 10:53:58 +0000 (12:53 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 26 May 2013 00:33:02 +0000 (02:33 +0200)
Previously, the emptiness check was not axis specific.

lily/stencil.cc

index 078ebbb4690f32e091928ab3937f05adb18ff4d9..c8985105ea44f0216ca58a3153a31cb89f3b55f2 100644 (file)
@@ -251,7 +251,7 @@ Stencil::set_empty (bool e)
 void
 Stencil::align_to (Axis a, Real x)
 {
-  if (is_empty ())
+  if (is_empty (a))
     return;
 
   Interval i (extent (a));