Skip to content

Commit

Permalink
Merge pull request #20534 from mike-spa/portFixBendGlitch
Browse files Browse the repository at this point in the history
Port #20531
  • Loading branch information
RomanPudashkin authored Dec 18, 2023
2 parents b6347a5 + a7ebe74 commit eb8d33c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engraving/rendering/dev/systemlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ System* SystemLayout::collectSystem(LayoutContext& ctx)
ctx.mutState().setStartWithLongNames(ctx.state().firstSystem() && layoutBreak->startWithLongNames());
}

if (oldSystem && oldSystem->tick() >= system->endTick() && !(oldSystem->page() && oldSystem->page() != ctx.state().page())) {
if (oldSystem && !oldSystem->measures().empty() && oldSystem->measures().front()->tick() >= system->endTick()
&& !(oldSystem->page() && oldSystem->page() != ctx.state().page())) {
// We may have previously processed the ties of the next system (in LayoutChords::updateLineAttachPoints()).
// We need to restore them to the correct state.
SystemLayout::restoreTiesAndBends(oldSystem, ctx);
Expand Down

0 comments on commit eb8d33c

Please sign in to comment.