From ee4f2489392d529bef27e7901d0db9197efaf8b9 Mon Sep 17 00:00:00 2001 From: XiaoMigros Date: Sun, 28 Apr 2024 22:38:24 +0200 Subject: [PATCH] Fix GH#22384: Don't align dynamics when hairpin line isn't visible Backport of #22813 --- libmscore/hairpin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmscore/hairpin.cpp b/libmscore/hairpin.cpp index f7c6b1f097a33..97d8ab3c2c0dc 100644 --- a/libmscore/hairpin.cpp +++ b/libmscore/hairpin.cpp @@ -304,7 +304,8 @@ void HairpinSegment::layout() rypos() += yd; } - if (hairpin()->addToSkyline() && !hairpin()->diagonal()) { + if (hairpin()->addToSkyline() && !hairpin()->lineVisible() + && !hairpin()->diagonal()) { // align dynamics with hairpin if (sd && sd->autoplace() && sd->placement() == hairpin()->placement()) { qreal ny = y() + ddiff - sd->offset().y();