Skip to content

Commit 22bac05

Browse files
asattelyJojo-Schmitz
authored andcommitted
Fix #307982: Palm mute/let ring line continuous instead of dashed before system break
Also ENG-97: Dashed lines that cross systems become continuous The problem was that MuseScore was attempting to draw the hook with the solid line style even when there was no hook to be drawn (because the line continued to the next system) Backport of musescore#8903
1 parent 0369ef0 commit 22bac05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libmscore/textlinebase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ void TextLineBaseSegment::draw(QPainter* painter) const
146146
int end = npoints;
147147
//draw centered hooks as solid
148148
painter->setPen(solidPen);
149-
if (tl->beginHookType() == HookType::HOOK_90T) {
149+
if (tl->beginHookType() == HookType::HOOK_90T && (isSingleType() || isBeginType())) {
150150
painter->drawLines(&points[0], 1);
151151
start++;
152152
}
153-
if (tl->endHookType() == HookType::HOOK_90T) {
153+
if (tl->endHookType() == HookType::HOOK_90T && (isSingleType() || isEndType())) {
154154
painter->drawLines(&points[npoints-1], 1);
155155
end--;
156156
}

0 commit comments

Comments
 (0)