Skip to content

Commit

Permalink
fix #105811: crash when creating full measure rests on multimeasure r…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
Jojo-Schmitz authored and lasconic committed Apr 15, 2016
1 parent b4d2811 commit db51a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2398,7 +2398,7 @@ void Score::cmdFullMeasureRest()
stick1 = selection().tickStart();
stick2 = selection().tickEnd();
Segment* ss1 = s1;
if (ss1->segmentType() != Segment::Type::ChordRest)
if (ss1 && ss1->segmentType() != Segment::Type::ChordRest)
ss1 = ss1->next1(Segment::Type::ChordRest);
bool fullMeasure = ss1 && (ss1->measure()->first(Segment::Type::ChordRest) == ss1)
&& (s2 == 0 || (s2->segmentType() == Segment::Type::EndBarLine)
Expand Down

0 comments on commit db51a4d

Please sign in to comment.