Skip to content

Commit

Permalink
Merge pull request #6468 from Jojo-Schmitz/crash
Browse files Browse the repository at this point in the history
fix #309290: fix crash on some corrupt score
  • Loading branch information
anatoly-os committed Aug 25, 2020
2 parents 48786e7 + fe8214c commit bbbcc78
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 @@ -3372,7 +3372,7 @@ void Measure::stretchMeasure(qreal targetWidth)
Segment* s = first();
while (s && !s->enabled())
s = s->next();
qreal x = s->pos().x();
qreal x = s ? s->pos().x() : 0.0;
while (s) {
s->rxpos() = x;
x += s->width();
Expand Down

0 comments on commit bbbcc78

Please sign in to comment.