Skip to content

Commit 873b803

Browse files
committed
Fix input of partial slurs on staves other than the top
1 parent e7ab3b1 commit 873b803

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/notation/internal/notationinteraction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,7 +2961,7 @@ void NotationInteraction::doAddSlur(EngravingItem* firstItem, EngravingItem* sec
29612961
partialSlur->undoSetOutgoing(true);
29622962
firstChordRest = toChordRest(cr);
29632963
const Measure* endMeas = otherElement->findMeasure();
2964-
ChordRest* endCr = endMeas->lastChordRest(0);
2964+
ChordRest* endCr = endMeas->lastChordRest(otherElement->track());
29652965
secondChordRest = endCr;
29662966
} else {
29672967
partialSlur->undoSetIncoming(true);
@@ -2972,7 +2972,7 @@ void NotationInteraction::doAddSlur(EngravingItem* firstItem, EngravingItem* sec
29722972
startMeas = startMeas->nextMeasure();
29732973
}
29742974
}
2975-
ChordRest* startCr = startMeas->firstChordRest(0);
2975+
ChordRest* startCr = startMeas->firstChordRest(otherElement->track());
29762976
firstChordRest = startCr;
29772977
}
29782978
slurTemplate = partialSlur;

vtest/scores/partial-slur.mscz

26.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)