]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #1177.
authorPatrick McCarty <pnorcks@gmail.com>
Thu, 8 Jul 2010 20:34:30 +0000 (13:34 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Thu, 8 Jul 2010 20:38:58 +0000 (13:38 -0700)
Transposing a clef by interval "0" leads to incorrect output, and it
does not make logical sense.

This commit prevents the transposition from being "0" and fixes the
output.

scm/parser-clef.scm

index 2f17701d4672f6d492885368207f3bf8fd716cd2..757a1876defd38f44c724c9b84ef8daf07c4d0d8 100644 (file)
   (let ((e '())
        (c0 0)
        (oct 0)
-       (match (string-match "^(.*)([_^])([0-9]+)$" clef-name)))
+       (match (string-match "^(.*)([_^])([1-9][0-9]*)$" clef-name)))
     (if match
        (begin
          (set! clef-name (match:substring match 1))