]> git.donarmstrong.com Git - lilypond.git/commitdiff
Revert "Fix line-ideal-distance to favour more even spacing."
authorNicolas Sceaux <nicolas.sceaux@free.fr>
Sun, 9 Dec 2007 17:51:27 +0000 (18:51 +0100)
committerNicolas Sceaux <nicolas.sceaux@free.fr>
Sun, 9 Dec 2007 17:51:27 +0000 (18:51 +0100)
This reverts commit a0c6b97af8366c381263772aea1dfe1434a36c2c
which broke markuplines

scm/layout-page-layout.scm

index 1686d9613a11d7ac097e484f797f462282feb372..38da734bd38a5b6add540937a7ab56680b0d014b 100644 (file)
   "Ideal distance between `line' reference position and `next-line'
  reference position. If next-line is #f, return #f."
   (and next-line
-       (max 0
-           (+ (- (+ (interval-end (paper-system-staff-extents next-line))
-                    (if ignore-padding 0 (line-next-padding line next-line layout)))
-                 (interval-start (paper-system-staff-extents line)))
-              (line-next-space line next-line layout)))))
+       (max (+ (max 0 (- (+ (interval-end (paper-system-staff-extents next-line))
+                           (if ignore-padding 0 (line-next-padding line next-line layout)))
+                        (interval-start (paper-system-staff-extents line))))
+              (line-next-space line next-line layout))
+           (line-minimum-distance line next-line layout ignore-padding))))
 
 (define (first-line-position line layout)
   "Position of the first line on page"