]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove redundant check for empty X interval
authorDavid Kastrup <dak@gnu.org>
Mon, 15 Sep 2014 16:03:55 +0000 (18:03 +0200)
committerDavid Kastrup <dak@gnu.org>
Sat, 20 Sep 2014 06:51:27 +0000 (08:51 +0200)
scm/define-markup-commands.scm

index e16a89e7aad9edcda91f8b8a8f70889e7d5e213b..f4543cff527e0639a9d0bc51d87e6ed9b4126793 100644 (file)
@@ -1255,9 +1255,7 @@ words varies according to their relative lengths."
                 orig-stencils))
          (text-widths
            (map (lambda (stc)
-                  (if (ly:stencil-empty? stc)
-                      0.0
-                      (interval-length (ly:stencil-extent stc X))))
+                  (interval-length (ly:stencil-extent stc X)))
                 stencils))
          (text-width (apply + text-widths))
          (word-count (length stencils))