Partial fix for issue #24245.
This fix works for slurs starting and ending in the same voice.
Merge pull request #651 from MarkRS-UK/24245-SlurAttachesToWrongNoteAfterSave

Partial fix for issue #24245.