Parcourir la source

transparency: fix invisible notes not colored transparent (note.PrintObject=false) (regression)

fix regression introduced by 7f5e1c9872733e2f2fd9fe3c1d81c1dd0f5f4c65
sschmid il y a 5 ans
Parent
commit
c7b704304b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/MusicalScore/Graphical/VexFlow/VexFlowVoiceEntry.ts

+ 1 - 1
src/MusicalScore/Graphical/VexFlow/VexFlowVoiceEntry.ts

@@ -85,7 +85,7 @@ export class VexFlowVoiceEntry extends GraphicalVoiceEntry {
                     ", in measure #" + measureNumber);
             }*/
 
-            if (!sourceNoteNoteheadColor && EngravingRules.Rules.ColoringMode === ColoringModes.XML) {
+            if (!sourceNoteNoteheadColor && EngravingRules.Rules.ColoringMode === ColoringModes.XML && note.sourceNote.PrintObject) {
                 if (!note.sourceNote.isRest() && defaultColorNotehead) {
                     noteheadColor = defaultColorNotehead;
                 } else if (note.sourceNote.isRest() && defaultColorRest) {