Skip to content

Commit

Permalink
fix #188051: corruption on delete with no/modified time signature
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Apr 19, 2017
1 parent de38cce commit cc75dab
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2474,15 +2474,12 @@ void Score::cmdDeleteSelection()
for (Measure* m = s1->measure(); m; m = m->nextMeasure()) {
Staff* staff = Score::staff(track / VOICES);
int tick = m->tick();
TimeSig* ts = staff->timeSig(tick);
if (ts) {
Fraction f = ts->sig();
Rest* r = setRest(tick, track, f, false, 0);
if (!cr)
cr = r;
if (s2 && (m == s2->measure()))
break;
}
Fraction ff = m->stretchedLen(staff);
Rest* r = setRest(tick, track, ff, false, 0);
if (!cr)
cr = r;
if (s2 && (m == s2->measure()))
break;
}
}
else {
Expand Down

0 comments on commit cc75dab

Please sign in to comment.