musescore/MuseScore — pull request #1206 by MarcSabatella (2014-08-23 02:12:22+00:00)
Title: accessibility fixes: volta text crash, text status display

The crash was actually an issue with Volta::text() itself - the accessibility code just happened to be the first to trigger it.

Also, for general text in the status line, I simplify (remove extra whitespace, newlines, etc) and truncate after 20 characters. Why 20? Why not. Feel free to pick a different number.