fix #21452
fix #23174
Merge pull request #503 from Jojo-Schmitz/Bug-#23174

fix #23174
Merge pull request #499 from lvinken/21452-incorrect-brace

fix #21452
fix tests
fix #23164
fix crash during note entry when editing multi measure rest