Skip to content

Commit

Permalink
Fix GH#22384: Don't align dynamics when hairpin line isn't visible
Browse files Browse the repository at this point in the history
Backport of musescore#22813
  • Loading branch information
XiaoMigros authored and Jojo-Schmitz committed Apr 28, 2024
1 parent d089067 commit ee4f248
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/hairpin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ee4f248

Please sign in to comment.