Skip to content

Commit

Permalink
fix #154551: Crash by removing a score with frames when the last meas…
Browse files Browse the repository at this point in the history
…ure contains a pedal line/volta line
  • Loading branch information
lasconic committed Feb 14, 2017
1 parent 0788a21 commit 317c701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/undo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2828,7 +2828,7 @@ void Score::undoInsertTime(int tick, int len)
if (t2 > s->tick())
append = true;
}
else if (s->tick() >= tick && s->tick2() < tick2)
else if (s->tick() >= tick && s->tick2() <= tick2)
append = true;
else if (s->tick() > tick && s->tick2() > tick2)
append = true;
Expand Down Expand Up @@ -2885,7 +2885,7 @@ void Score::undoInsertTime(int tick, int len)
if (t2 > s->tick())
undoChangeProperty(s, P_ID::SPANNER_TICKS, s->ticks() + len);
}
else if (s->tick() >= tick && s->tick2() < tick2) {
else if (s->tick() >= tick && s->tick2() <= tick2) {
//
// case C:
// +---spanner---+
Expand Down

0 comments on commit 317c701

Please sign in to comment.