Skip to content

Commit

Permalink
Update layout.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Jan 8, 2024
1 parent bdcfa2f commit 5c10ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@ void Score::hideEmptyStaves(System* system, bool isFirstSystem)

Fraction stick = system->measures().front()->tick();
Fraction etick = system->measures().back()->endTick();
const auto& spanners = score()->spannerMap().findOverlapping(stick.ticks(), etick.ticks() - 1);
auto& spanners = score()->spannerMap().findOverlapping(stick.ticks(), etick.ticks() - 1);

for (Staff* staff : qAsConst(_staves)) {
SysStaff* ss = system->staff(staffIdx);
Expand All @@ -1404,7 +1404,7 @@ void Score::hideEmptyStaves(System* system, bool isFirstSystem)
&& !(isFirstSystem && styleB(Sid::dontHideStavesInFirstSystem))
&& hideMode != Staff::HideMode::NEVER)) {
bool hideStaff = true;
for (const auto& spanner : spanners) {
for (auto& spanner : spanners) {
if (spanner.value->staff() == staff
&& !spanner.value->systemFlag()
&& !(spanner.stop == stick.ticks() && !spanner.value->isSlur())) {
Expand Down

0 comments on commit 5c10ca6

Please sign in to comment.