]> git.donarmstrong.com Git - lilypond.git/commitdiff
Adds sane return value to stem::length after programming error.
authorMike Solomon <mike@apollinemike.com>
Thu, 22 Sep 2011 11:53:52 +0000 (13:53 +0200)
committerMike Solomon <mike@apollinemike.com>
Thu, 22 Sep 2011 11:53:52 +0000 (13:53 +0200)
scm/output-lib.scm

index 33a2df36a70afcec5747ebaca2363028786e26a8..0fbe9ee3c9ac086e682f3cc64c655d3ce5e00b33 100644 (file)
          (beam (ly:grob-object grob 'beam)))
     (if (null? beam)
         (abs (- (ly:stem::calc-stem-end-position grob) beg))
-        (ly:programming-error
-          "stem::length called but will not be used for beamed stem."))))
+        (begin
+          (ly:programming-error
+            "stem::length called but will not be used for beamed stem.")
+          0.0))))
 
 (define-public (stem::pure-length grob beg end)
   (let* ((ss (ly:staff-symbol-staff-space grob))