Skip to content

Commit

Permalink
Corrections - 4
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed May 3, 2024
1 parent 954d239 commit 974f5fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/engraving/rendering/dev/pagelayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,11 @@ void PageLayout::collectPage(LayoutContext& ctx)
}

for (const System* system : page->systems()) {
SystemLayout::centerElementsBetweenStaves(system);
Fraction systemStartTick = system->measures().front()->tick();
Fraction systemEndTick = system->measures().back()->endTick();
if (systemEndTick > ctx.state().startTick() && systemStartTick < ctx.state().endTick()) {
SystemLayout::centerElementsBetweenStaves(system);
}
}

page->invalidateBspTree();
Expand Down
1 change: 1 addition & 0 deletions src/engraving/rendering/dev/scorepageviewlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ void ScorePageViewLayout::initLayoutContext(const Score* score, LayoutContext& c
system_idx_t systemIndex = muse::indexOf(score->systems(), system);

// set current system
state.setStartTick(system->measures().front()->tick());
state.setCurSystem(system);
state.setSystemList(muse::mid(score->systems(), systemIndex));

Expand Down

0 comments on commit 974f5fb

Please sign in to comment.