]> git.donarmstrong.com Git - lilypond.git/commitdiff
Let Box::translate ignore empty axes
authorDavid Kastrup <dak@gnu.org>
Sat, 27 Apr 2013 19:12:30 +0000 (21:12 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 26 May 2013 00:33:02 +0000 (02:33 +0200)
lily/box.cc

index f91069b7663d56feb9c51603ed0199c16e6f9216..df5ccb75b2649c2e547b976b129ba78cbc5aee0a 100644 (file)
@@ -23,7 +23,8 @@ void
 Box::translate (Offset o)
 {
   for (Axis i = X_AXIS; i < NO_AXES; incr (i))
-    interval_a_[i] += o[i];
+    if (!is_empty (i))
+      interval_a_[i] += o[i];
 }
 
 void