Sfoglia il codice sorgente

copy key before transposing ('merge' from transpose build)

sschmid 4 anni fa
parent
commit
b6278efd7a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/MusicalScore/Graphical/MusicSystemBuilder.ts

+ 1 - 1
src/MusicalScore/Graphical/MusicSystemBuilder.ts

@@ -497,7 +497,7 @@ export class MusicSystemBuilder {
                 currentClef = this.activeClefs[visibleStaffIdx];
             }
             if (!currentKey) {
-                currentKey = this.activeKeys[visibleStaffIdx];
+                currentKey = KeyInstruction.copy(this.activeKeys[visibleStaffIdx]);
             }
             if (isFirstSourceMeasure && !currentRhythm) {
                 currentRhythm = this.activeRhythm[visibleStaffIdx];