Skip to content

Commit 1ce757c

Browse files
committed
Improve HP centering on stem side
1 parent 112d998 commit 1ce757c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/engraving/rendering/score/tlayout.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3288,6 +3288,10 @@ void TLayout::layoutHammerOnPullOffSegment(HammerOnPullOffSegment* item, LayoutC
32883288
}
32893289
}
32903290
}
3291+
if (startChord->stem() && endChord->stem() && startChord->up() == above && endChord->up() == above) {
3292+
// Mid-way between centered on the notes and centered on the stems
3293+
endX += (above ? 0.5 : -0.5) * endChord->upNote()->headWidth();
3294+
}
32913295
double centerX = 0.5 * (startX + endX);
32923296

32933297
double vertPadding = 0.5 * item->spatium();

0 commit comments

Comments
 (0)