fix #40541: Slur across measures with whole notes causes an editing glitch in a score