Skip to content

Commit

Permalink
Fix bends glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Dec 18, 2023
1 parent f378202 commit a7ebe74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engraving/rendering/dev/systemlayout.cpp
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 a7ebe74

Please sign in to comment.