Skip to content

Commit

Permalink
Fix crash when deleting voice 2 rest in note input mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Dec 15, 2024
1 parent 5cda06b commit f00df7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2572,7 +2572,7 @@ void Score::cmdDeleteSelection()
deselectAll();
// make new selection if appropriate
if (noteEntryMode()) {
if (!crsSelectedAfterDeletion.empty())
if (crsSelectedAfterDeletion[0])
_is.setSegment(crsSelectedAfterDeletion[0]->segment());
else
crsSelectedAfterDeletion.push_back(_is.cr());
Expand Down

0 comments on commit f00df7a

Please sign in to comment.