Skip to content

Commit 7ab45ff

Browse files
Merge pull request #20531 from mike-spa/fixBendsGlitch
Fix bends glitch
2 parents acea7da + efec7df commit 7ab45ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/engraving/rendering/dev/systemlayout.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,8 @@ System* SystemLayout::collectSystem(LayoutContext& ctx)
514514
ctx.mutState().setStartWithLongNames(ctx.state().firstSystem() && layoutBreak->startWithLongNames());
515515
}
516516

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

0 commit comments

Comments
 (0)