]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/side-position-interface.cc
Revert "Uses special X alignment for instrument names."
[lilypond.git] / lily / side-position-interface.cc
index 5a8ecb74c91b8eac59f6489995b63daecfee2d80..4d8efe1ced4d0687fe0aa61ddf46fc0d190b8b14 100644 (file)
@@ -314,6 +314,16 @@ Side_position_interface::aligned_side (Grob *me, Axis a, bool pure, int start, i
       dim.set_minimum_height (staff_extents[dir]);
     }
 
+  // this seems kinda kludgy, as there is no apparent logic to it
+  // however, it is a holdover from the previous code and
+  // necessary for the InstrumentName grob
+  // TODO: find a better way to deal with this...
+  if (dim.is_empty ())
+    {
+      dim = Skyline (dim.direction ());
+      dim.set_minimum_height (0.0);
+    }
+
   // Many cross-staff grobs do not have good height estimations.
   // We give the grob the best chance of not colliding by shifting
   // it to the maximum height in the case of cross-staff alignment.