Skip to content

Commit

Permalink
Fix GH#21479: Accidentals follow note visibility when repitching
Browse files Browse the repository at this point in the history
Backport of musescore#21858
  • Loading branch information
XiaoMigros authored and Jojo-Schmitz committed Mar 14, 2024
1 parent fb9edcc commit 8f174ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libmscore/note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,7 @@ void Note::updateAccidental(AccidentalState* as)
Accidental* a = new Accidental(score());
a->setParent(this);
a->setAccidentalType(acci);
a->setVisible(visible());
score()->undoAddElement(a);
}
else if (_accidental->accidentalType() != acci) {
Expand Down

0 comments on commit 8f174ef

Please sign in to comment.