check if note/rest is selected to allow user to only change a given voice

Fix selection detection if last measure is included in selection.

Only change notes that are selected. This gives the user the possibility to only select a single voice.
For example: Cues are often written when there is still a rest shown since the part doesn't yet play. This rest should not set to be small.