fix #31051
Merge pull request #1244 from lvinken/musicxml-fixes

fix #31051