Skip to content

Commit

Permalink
Solve a crash when score contains a vbox which is not on top of a page.
Browse files Browse the repository at this point in the history
  • Loading branch information
njvdberg committed Mar 21, 2021
1 parent 06df428 commit 477013f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5120,7 +5120,7 @@ VerticalGapData::VerticalGapData(bool first, System *sys, Staff *st, SysStaff *s
_normalisedSpacing = system->y() + (sysStaff ? sysStaff->y() : 0.0) - y;
_maxActualSpacing = system->score()->styleP(Sid::maxStaffSpread);

Spacer* spacer { sys->upSpacer(st->idx(), nextSpacer) };
Spacer* spacer { staff ? system->upSpacer(staff->idx(), nextSpacer) : nullptr };

if (spacer) {
_fixedSpacer = spacer->spacerType() == SpacerType::FIXED;
Expand Down

0 comments on commit 477013f

Please sign in to comment.