From 8a2a07175acaf1d2ccc51defd99b24d3aab63629 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Mon, 15 Sep 2014 18:03:55 +0200 Subject: [PATCH] Remove redundant check for empty X interval --- scm/define-markup-commands.scm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scm/define-markup-commands.scm b/scm/define-markup-commands.scm index e16a89e7aa..f4543cff52 100644 --- a/scm/define-markup-commands.scm +++ b/scm/define-markup-commands.scm @@ -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)) -- 2.39.2