]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/page-layout-problem.hh
Issue 2691: page-layout: consider relative indents in loose-line spacing
[lilypond.git] / lily / include / page-layout-problem.hh
index ccc2538905c86dc7cdd4716a84002f09e631b647..b7d63a2e13e0f7d8b02ce519a3a0be7ffcf94ed3 100644 (file)
@@ -64,14 +64,16 @@ protected:
     Prob *prob;
     vector<Grob *> staves;
     vector<Real> min_offsets;
-    // Store the appropriate '*-*-spacing 'padding,
-    //  for spacing any adjacent loose line
+    // Store the appropriate '*-*-spacing 'padding, and skyline-distance,
+    //  considering indentation, from the previous system.
+    Real min_distance;
     Real padding;
 
-    Element (vector<Grob *> const &a, vector<Real> const &o, Real p)
+    Element (vector<Grob *> const &a, vector<Real> const &o, Real m, Real p)
     {
       staves = a;
       min_offsets = o;
+      min_distance = m;
       padding = p;
       prob = 0;
     }