From 56fa3ccee509e4fdea917f624b2d386e7272f832 Mon Sep 17 00:00:00 2001 From: Malte Meyn Date: Thu, 7 Sep 2023 13:32:47 +0200 Subject: [PATCH] Fix #18798: corrects system bracket display in continuous view --- src/engraving/rendering/dev/scorehorizontalviewlayout.cpp | 2 ++ src/engraving/rendering/dev/systemlayout.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engraving/rendering/dev/scorehorizontalviewlayout.cpp b/src/engraving/rendering/dev/scorehorizontalviewlayout.cpp index bcb3e5ee5f3a6..2461738dc487c 100644 --- a/src/engraving/rendering/dev/scorehorizontalviewlayout.cpp +++ b/src/engraving/rendering/dev/scorehorizontalviewlayout.cpp @@ -343,5 +343,7 @@ void ScoreHorizontalViewLayout::collectLinearSystem(LayoutContext& ctx) MeasureLayout::getNextMeasure(ctx); } + SystemLayout::hideEmptyStaves(system, ctx, true); + system->setWidth(pos.x()); } diff --git a/src/engraving/rendering/dev/systemlayout.h b/src/engraving/rendering/dev/systemlayout.h index b6ac0551039f9..7144193c61f56 100644 --- a/src/engraving/rendering/dev/systemlayout.h +++ b/src/engraving/rendering/dev/systemlayout.h @@ -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); @@ -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 lines, bool align); static void layoutTies(Chord* ch, System* system, const Fraction& stick); static void doLayoutTies(System* system, std::vector sl, const Fraction& stick, const Fraction& etick);