]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix the positioning of the header.
authorJoe Neeman <joeneeman@gmail.com>
Mon, 10 Aug 2009 01:17:15 +0000 (11:17 +1000)
committerJoe Neeman <joeneeman@gmail.com>
Mon, 10 Aug 2009 03:31:40 +0000 (13:31 +1000)
scm/page.scm

index 3d897c1465919af7bdd1359334460978d4eba690..2b63218766f7f6ab3690133e7b5bb91d362db497 100644 (file)
                                                       system-separator-markup)
                                     #f))
        
-       (head-height (if (ly:stencil? (prop 'head-stencil))
-                       (interval-length (ly:stencil-extent (prop 'head-stencil) Y))
-                       0.0))
-
        (page-stencil (ly:make-stencil '()))
 
        (last-system #f)
         (ly:stencil? head)
         (not (ly:stencil-empty? head)))
        (begin
+         ;; Ensure that the top of the header just touches the top margin.
          (set! head (ly:stencil-translate-axis head
-                                               (- 0 head-height (prop 'top-margin)) Y))
+                                               (- 0 (cdr (ly:stencil-extent head Y)) (prop 'top-margin)) Y))
          (set! page-stencil (ly:stencil-add page-stencil head))))
 
     (if (and