Skip to content

Commit 9edb024

Browse files
authored
Merge pull request #31164 from miiizen/31145-partialSlur
Fix input of partial slurs on staves other than the top
2 parents 2e1782d + 873b803 commit 9edb024

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
@@ -2962,7 +2962,7 @@ void NotationInteraction::doAddSlur(EngravingItem* firstItem, EngravingItem* sec
29622962
partialSlur->undoSetOutgoing(true);
29632963
firstChordRest = toChordRest(cr);
29642964
const Measure* endMeas = otherElement->findMeasure();
2965-
ChordRest* endCr = endMeas->lastChordRest(0);
2965+
ChordRest* endCr = endMeas->lastChordRest(otherElement->track());
29662966
secondChordRest = endCr;
29672967
} else {
29682968
partialSlur->undoSetIncoming(true);
@@ -2973,7 +2973,7 @@ void NotationInteraction::doAddSlur(EngravingItem* firstItem, EngravingItem* sec
29732973
startMeas = startMeas->nextMeasure();
29742974
}
29752975
}
2976-
ChordRest* startCr = startMeas->firstChordRest(0);
2976+
ChordRest* startCr = startMeas->firstChordRest(otherElement->track());
29772977
firstChordRest = startCr;
29782978
}
29792979
slurTemplate = partialSlur;

vtest/scores/partial-slur.mscz

26.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)