fix #27921
Merge pull request #1047 from Igevorse/staff-text

fix #27921