]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/paper-system.scm
(paper-system-annotate): fix problem when
[lilypond.git] / scm / paper-system.scm
index 43711a4ee1c94ea7536c4910281b766842ff60c6..2f22865b4830fed7e6a7b2c06611d27da78f3ad6 100644 (file)
                                 (+ next-space next-padding)
                                 "refpoint-Y-extent" "next-space+padding"
                                 "space after next-space+padding"))
-    (set! (ly:prob-property system 'stencil)
-         (ly:stencil-add
-          (ly:prob-property system 'stencil)
-          (ly:make-stencil
-           (ly:stencil-expr annotations)
-           (ly:stencil-extent empty-stencil X)
-           (ly:stencil-extent empty-stencil Y))))))
+    (if (not (null? annotations))
+       (set! (ly:prob-property system 'stencil)
+             (ly:stencil-add
+              (ly:prob-property system 'stencil)
+              (ly:make-stencil
+               (ly:stencil-expr annotations)
+               (ly:stencil-extent empty-stencil X)
+               (ly:stencil-extent empty-stencil Y)))))
+    (ly:prob-property system 'stencil)))
\ No newline at end of file