]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/spacing-spanner.cc
Doc: extend description of LilyPond code blocks (3098)
[lilypond.git] / lily / spacing-spanner.cc
index 51ae51319d2f37d342cfeb9b936ff135b61a2b02..022c6a121949543fa05c7fd4b4fba680aa8b1fea 100644 (file)
@@ -237,14 +237,14 @@ set_column_rods (vector<Grob *> const &cols, Real padding)
       if (Separation_item::is_empty (r) && (!rb || Separation_item::is_empty (rb)))
         continue;
 
-      Interval r_ext = r->extent (r, X_AXIS);
-      overhangs[i] = r_ext[RIGHT];
+      Skyline_pair *skys = Skyline_pair::unsmob (r->get_property ("horizontal-skylines"));
+      overhangs[i] = skys ? (*skys)[RIGHT].max_height () : 0.0;
 
       if (0 == i) continue;
 
       /* min rather than max because stickout will be negative if the right-hand column
          sticks out a lot to the left */
-      Real stickout = min (r_ext[LEFT],
+      Real stickout = min (skys ? (*skys)[LEFT].max_height () : 0.0,
                            Separation_item::conditional_skyline (r, cols[i - 1]).max_height ());
 
       Real prev_distances = 0.0;