Skip to content

Commit

Permalink
Fix musescore#18798: corrects system bracket display in continuous view
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeyn committed Sep 12, 2023
1 parent 6baef5f commit a2be33a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/engraving/rendering/dev/scorehorizontalviewlayout.cpp
Expand Up @@ -343,5 +343,7 @@ void ScoreHorizontalViewLayout::collectLinearSystem(LayoutContext& ctx)
MeasureLayout::getNextMeasure(ctx);
}

SystemLayout::hideEmptyStaves(system, ctx, true);

system->setWidth(pos.x());
}
1 change: 1 addition & 0 deletions src/engraving/rendering/dev/scorelayout.cpp
Expand Up @@ -90,4 +90,5 @@ void ScoreLayout::layoutRange(Score* score, const Fraction& st, const Fraction&
ScoreVerticalViewLayout::layoutVerticalView(score, ctx, stick, etick);
break;
}

}
3 changes: 2 additions & 1 deletion src/engraving/rendering/dev/systemlayout.h
Expand Up @@ -47,6 +47,8 @@ class SystemLayout

static void layoutSystem(System* system, LayoutContext& ctx, double xo1, bool isFirstSystem = false, bool firstSystemIndent = false);

static void hideEmptyStaves(System* system, LayoutContext& ctx, bool isFirstSystem);

static void layout2(System* system, LayoutContext& ctx);
static void restoreLayout2(System* system, LayoutContext& ctx);
static void setMeasureHeight(System* system, double height, LayoutContext& ctx);
Expand All @@ -59,7 +61,6 @@ class SystemLayout

private:
static System* getNextSystem(LayoutContext& lc);
static void hideEmptyStaves(System* system, LayoutContext& ctx, bool isFirstSystem);
static void processLines(System* system, LayoutContext& ctx, std::vector<Spanner*> lines, bool align);
static void layoutTies(Chord* ch, System* system, const Fraction& stick);
static void doLayoutTies(System* system, std::vector<Segment*> sl, const Fraction& stick, const Fraction& etick);
Expand Down

0 comments on commit a2be33a

Please sign in to comment.