Skip to content

Commit

Permalink
fix #188051: corruption deleting contents of measure with modified du…
Browse files Browse the repository at this point in the history
…ration
  • Loading branch information
MarcSabatella committed Jul 26, 2018
1 parent 813b479 commit 3c81c05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2068,9 +2068,8 @@ void Score::cmdDeleteSelection()
Staff* staff = Score::staff(track / VOICES);
for (Measure* m = s1->measure(); m; m = m->nextMeasure()) {
int tick = m->tick();
TimeSig* ts = staff->timeSig(tick);
Fraction f = ts ? ts->sig() : Fraction(4, 4);
Rest* r = setRest(tick, track, f, false, 0);
Fraction ff = m->stretchedLen(staff);
Rest* r = setRest(tick, track, ff, false, 0);
if (!cr)
cr = r;
if (s2 && (m == s2->measure()))
Expand Down

0 comments on commit 3c81c05

Please sign in to comment.