Skip to content

Commit

Permalink
Merge pull request #13427 from asattely/slur-adjustment
Browse files Browse the repository at this point in the history
[MU4] Missed case on slur-tie adjustment
  • Loading branch information
RomanPudashkin committed Sep 23, 2022
2 parents 157564f + e1fc970 commit bd3e1bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/engraving/libmscore/slur.cpp
Expand Up @@ -1664,10 +1664,12 @@ SpannerSegment* Slur::layoutSystem(System* system)
}
}
}
if (!adjustedVertically && ec->notes()[0]->tieFor() && !ec->notes()[0]->tieFor()->isInside()
&& ec->notes()[0]->tieFor()->up() == up()) {
Tie* tieFor = ec->notes()[0]->tieFor();
if (!adjustedVertically && tieFor && !tieFor->isInside() && tieFor->up() == up()) {
// there is a tie that starts on this chordrest
p2.rx() -= horizontalTieClearance;
if (std::abs(tieFor->frontSegment()->ups(Grip::START).pos().y() - p2.y()) < tieClearance) {
p2.rx() -= horizontalTieClearance;
}
}
}
} else {
Expand Down
Binary file added vtest/scores/slur-adjust-for-tie.mscz
Binary file not shown.

0 comments on commit bd3e1bb

Please sign in to comment.