Empty volta line text is not preserved and reverts to "1."

• Jun 5, 2017 - 01:45
Reported version
2.1
Type
Functional
Severity
3
Status
closed
Project

In Volta Properties, if the text is set empty, it is reverted back to "1." This prevents the volta line from being used as a general graphic element, for example.

Workaround: a space works as a volta text and suppresses this bug.


Comments

Severity

Can you attach the score you are having trouble with and give precise steps to reproduce this? I had no problem setting a volta to empty text when I tried.

Note if you want a generic line, there is one available already - no need to co-opt the volta line for this.

I can't provide any example files because I missed a sentence in the description. It reverts after you save and reopen the file. When you load the file you'll always get "1." in the text if the text was empty when the file was being saved.

Severity
Status (old) needs info active

I can reproduce in 2.1 and master. The "1." is not stored, but seems "beginText" defaults to that if not set differently.
Culprit seems to be libmscore/volta.cpp, line 174 .
And on write of an empty text no beginText tag is written to the file
Repeat list (the "endings" tag) defaults to empty apparently.

Workaround: either use a text line and enable hooks, or set the volta text to a blank, " "

Removing above mentioned line seems to fix the problem.

Title Empty volta line text is not preserved and reverts to 1. Empty volta line text is not preserved and reverts to "1."
Severity