User Text Styles settings are lost after saving

• Feb 7, 2019 - 17:48
Reported version
3.0
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project

3.0.2 / Windows7

1) Format -> Style -> Text Styles -> User-1 (for create new text style)
2) To get eg a custom Text staff, change "Y" value to -5,00 (defaut -2,00), and name "CustomStaff" -> Ok

In Inspector, ok too:

test1.jpg

3) Save/Exit
4) Reload

Unexpected: settings are lost, reverted to 0,00 (In Inspector as well in the Style window)

customtext.jpg


Comments

Are you seeing this only for offset? If so, I suspect that's in part a limitation of the design - offset is not actually part of the text style, but the element. So changing the offset and setting that as style sets the element style (in this case, staff text) to that value. You can see this if you then create a new staff text using the default staff text style - it will have the offset. There is also a mismatch between results if you set as style using the Inspector vs using Format / Style / Text Style, for similar reasons I think. Complicating this is the fact that we also store separate offsets for above/below on some elements.

So, this is related to #281019: Staff text offset applied to wrong above/below position, although the specifics are different, I think the underlying issue is similar.

Probably we should find a way to clarify how the offsets & placement interact for element style vs text style.

Text was an example for the issue report. But the observation comes from the same member of the international guitar forum. He was the first to realize that it was impossible to create custom styles for fingering: https://musescore.org/en/node/281146#comment-883430

And so, after their reintroduction in :https://github.com/musescore/MuseScore/commit/506acb9ec2d27cc09626bdf88…

[Hotsoup wrote: ↑
18 Jan. 2019, 14:52]
"I noticed the fingering style options are there again",

he found the loss of these settings:

[Hotsoup wrote: ↑
18 Jan. 2019, 14:52]
"but now I'm finding that saving styles forgets the x/y offsets when you load it in a new session."

fing.jpg

Fix version
3.0.3