Skip to content

Commit

Permalink
fix #119581: Select note values onto multimeasure rests in parts lead…
Browse files Browse the repository at this point in the history
…s to corruption and crash
  • Loading branch information
lasconic committed Jul 29, 2016
1 parent 0fd9ed2 commit eb90028
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libmscore/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2559,11 +2559,17 @@ void Score::padToggle(Pad n)
TDuration d = r->durationType();
if (d.type() == TDuration::DurationType::V_MEASURE) {
_is.setDots(0);
// return;
}
}

// on measure rest, select the first actual rest
ChordRest* cr = selection().cr();
if (cr && cr->isRest() && cr->measure()->isMMRest()) {
Measure* m = cr->measure()->mmRestFirst();
if (m)
cr = m->findChordRest(0, 0);
}

if (!cr)
return;

Expand Down

0 comments on commit eb90028

Please sign in to comment.