Fix issue #23985.
Furthermore implements deleting all the measures covered by the multi-
Merge pull request #620 from MarkRS-UK/DeleteMultiMeasureRests

Fix issue #23985.