]> git.donarmstrong.com Git - lilypond.git/commitdiff
Compile fix.
authorNeil Puttock <n.puttock@gmail.com>
Tue, 11 Aug 2009 18:50:34 +0000 (19:50 +0100)
committerNeil Puttock <n.puttock@gmail.com>
Tue, 11 Aug 2009 18:50:34 +0000 (19:50 +0100)
* system-start-text::calc-y-offset: return sane value for suicided grobs

scm/output-lib.scm

index b2d7bea66b5e52867d7e7b0a7d752708e72f4672..152f35c7cfe9e31131302ec5affd563e83229f05 100644 (file)
 
     (if (and (pair? live-elts)
             (interval-sane? (ly:grob-extent grob system Y)))
-       (begin
-         (let get-extent ((lst live-elts))
-           (if (pair? lst)
-               (let ((axis-group (car lst)))
-
-                 (if (and (ly:spanner? axis-group)
-                          (equal? (ly:spanner-bound axis-group LEFT)
-                                  left-bound))
-                     (set! extent (add-point extent
-                                             (ly:grob-relative-coordinate
-                                              axis-group system Y))))
-                 (get-extent (cdr lst)))))
-         (+
-          (ly:self-alignment-interface::y-aligned-on-self grob)
-          (interval-center extent)))
+       (let get-extent ((lst live-elts))
+         (if (pair? lst)
+             (let ((axis-group (car lst)))
+
+               (if (and (ly:spanner? axis-group)
+                        (equal? (ly:spanner-bound axis-group LEFT)
+                                left-bound))
+                   (set! extent (add-point extent
+                                           (ly:grob-relative-coordinate
+                                            axis-group system Y))))
+               (get-extent (cdr lst)))))
        ;; no live axis group(s) for this instrument name -> remove from system
-       (ly:grob-suicide! grob))))
+       (ly:grob-suicide! grob))
 
+    (+
+     (ly:self-alignment-interface::y-aligned-on-self grob)
+     (interval-center extent))))