Skip to content

Commit

Permalink
fix #106466: append an horizontal frame causes a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Apr 18, 2016
1 parent 6a02161 commit a6fa201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2550,7 +2550,7 @@ qreal Measure::createEndBarLines(bool isLastMeasureInSystem)
t = BarLineType::END_REPEAT;
force = true;
}
else if (!isLastMeasureInSystem && nextMeasure()->repeatStart()) {
else if (!isLastMeasureInSystem && nextMeasure() && nextMeasure()->repeatStart()) {
t = BarLineType::START_REPEAT;
force = true;
}
Expand Down

0 comments on commit a6fa201

Please sign in to comment.