Skip to content

Commit

Permalink
Merge pull request musescore#8021 from Jojo-Schmitz/fill-with-slashes…
Browse files Browse the repository at this point in the history
…-crash-3.x

[MU3] Fix #320620: Crash when filing with slashes
  • Loading branch information
RomanPudashkin authored May 5, 2021
2 parents 7d1c732 + 2ae4961 commit 1b3ed31
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions libmscore/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3200,14 +3200,16 @@ void Score::cmdSlashFill()
// insert & turn into slash
s = setNoteRest(s, track + voice, nv, f);
Chord* c = toChord(s->element(track + voice));
if (c->links()) {
for (ScoreElement* e : *c->links()) {
Chord* lc = toChord(e);
lc->setSlash(true, true);
if (c) {
if (c->links()) {
for (ScoreElement* e : *c->links()) {
Chord* lc = toChord(e);
lc->setSlash(true, true);
}
}
else
c->setSlash(true, true);
}
else
c->setSlash(true, true);
lastSlash = c;
if (!firstSlash)
firstSlash = c;
Expand Down

0 comments on commit 1b3ed31

Please sign in to comment.