]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3913: KeyCancellation grobs should ignore cue clefs like KeySignature grobs do
authorDavid Kastrup <dak@gnu.org>
Sat, 3 May 2014 08:38:18 +0000 (10:38 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 9 May 2014 19:48:03 +0000 (21:48 +0200)
For

{
  \key f \major R1 \cueClef bass \key g \major R1 \cueClefUnset
  R1 \cueClef alto \key bes \major R1
}

the cancellation signs for the key changes were erroneously placed in
reference to the current cue clef rather than the main clef while the
key signature itself was properly unimpressed.

lily/key-engraver.cc

index 6e758f5728fcd415c0c5e5fa857bbb715c207d70..57035089c4f23f340cf14b8e70b8a88de836cf63 100644 (file)
@@ -106,7 +106,7 @@ Key_engraver::create_key (bool is_default)
 
               cancellation_->set_property ("alteration-alist", restore);
               cancellation_->set_property ("c0-position",
-                                           get_property ("middleCPosition"));
+                                           get_property ("middleCClefPosition"));
             }
         }