Skip to content

Commit

Permalink
Fix #307982: Palm mute/let ring line continuous instead of dashed bef…
Browse files Browse the repository at this point in the history
…ore 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
  • Loading branch information
asattely authored and Jojo-Schmitz committed Sep 2, 2021
1 parent 810f166 commit faf262e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/textlinebase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ void TextLineBaseSegment::draw(QPainter* painter) const
int end = npoints;
//draw centered hooks as solid
painter->setPen(solidPen);
if (tl->beginHookType() == HookType::HOOK_90T) {
if (tl->beginHookType() == HookType::HOOK_90T && (isSingleType() || isBeginType())) {
painter->drawLines(&points[0], 1);
start++;
}
if (tl->endHookType() == HookType::HOOK_90T) {
if (tl->endHookType() == HookType::HOOK_90T && (isSingleType() || isEndType())) {
painter->drawLines(&points[npoints-1], 1);
end--;
}
Expand Down

0 comments on commit faf262e

Please sign in to comment.