Skip to content

Commit 9e9f950

Browse files
asattelyJojo-Schmitz
authored andcommitted
Fix GH#8971, fix #254426: Tie directions on multivoice chords
Backport of musescore#9104, fixes musescore#8971
1 parent 31a1d2b commit 9e9f950

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libmscore/tie.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,11 @@ void Tie::calculateDirection()
637637
if (_slurDirection == Direction::AUTO) {
638638
std::vector<Note*> notes = c1->notes();
639639
size_t n = notes.size();
640-
if (m1->hasVoices(c1->staffIdx(), c1->tick(), c1->actualTicks()) || m2->hasVoices(c2->staffIdx(), c2->tick(), c2->actualTicks())) {
641-
// in polyphonic passage, ties go on the stem side
640+
// if there are multiple voices, the tie direction goes on stem side
641+
if (m1->hasVoices(c1->staffIdx(), c1->tick(), c1->actualTicks()))
642642
_up = c1->up();
643-
}
643+
else if (m2->hasVoices(c2->staffIdx(), c2->tick(), c2->actualTicks()))
644+
_up = c2->up();
644645
else if (n == 1) {
645646
//
646647
// single note

0 commit comments

Comments
 (0)