MuseScore
MuseScore copied to clipboard
[MU4 Issue] CANNOT_SPLIT_MEASURE_TOO_SHORT message is wrong
Describe the bug
The message of error CANNOT_SPLIT_MEASURE_TOO_SHORT is "No note or rest selected".
To Reproduce Steps to reproduce the behavior:
- Open any score
- Click on any measure
- Press any note duration less than 128th note (you may have to add it to the toolbar)
- Select the second rest in the bar
- Split the bar by going to Tools -> Bars -> Split bar before etc.
- Message says "No note or rest selected"
Expected behavior A more accurate error message should appear
Screenshots

Platform information
- MacOS but it doesn't matter
Additional context
The relevant file is src/notation/internal/notationinteraction.cpp, and this is probably a very good first issue
(also currently the 1000th open issue which is some milestone i guess)