]> git.donarmstrong.com Git - lilypond.git/commitdiff
(ly:optimal-page-breaks): whoops. Thinko in
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 6 Sep 2004 18:42:45 +0000 (18:42 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 6 Sep 2004 18:42:45 +0000 (18:42 +0000)
rod calculation.

scm/page-layout.scm

index 5c2834b478216ed7e60c03d47c3e52576936a25e..63fbb355575e8a8f3414beb2126d140d50a3e7f6 100644 (file)
@@ -293,9 +293,9 @@ is what have collected so far, and has ascending page numbers."
            (let*
                ((this-system-ext (vector-ref real-extents idx))
                 (next-system-ext (vector-ref real-extents (1+ idx)))
-                (distance (- (+ (car this-system-ext)
+                (distance (- (+ (cdr next-system-ext)
                                 fixed-dist)
-                             (cdr next-system-ext)
+                             (car this-system-ext)
                              ))
                 (entry (list idx (1+ idx) distance)))
              entry)))