fix #3510 and better handling of timesigs when deleting measures
Merge pull request #235 from Soerboe/fix3510

fix #3510 and better handling of timesigs when deleting measures