Просмотр исходного кода

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

sschmid 4 лет назад
Родитель
Сommit
b6278efd7a
1 измененных файлов с 1 добавлено и 1 удалено
  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];