Skip to content

Commit

Permalink
Fix/avoid a crash with dotted rests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Jul 16, 2019
1 parent cc654b1 commit 0bf2430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/rest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ void Rest::checkDots()
dot->setVisible(visible());
score()->undoAddElement(dot);
}
if (n < 0) {
if (n < 0 && _dots.size()) {
for (int i = 0; i < -n; ++i)
score()->undoRemoveElement(_dots.back());
}
Expand Down

0 comments on commit 0bf2430

Please sign in to comment.