Rehearsal marker position reset by *everything* in editstyle.ui

• Feb 20, 2019 - 19:17
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

1) Open the attached score. Note the position of the A2 and A3 markers. They are horizontally shifted to the right of the default.
2) Open the edit styles dialog. Change any setting. Concert pitch is near the top of the first page of settings, that will do it. You don't even have to hit apply, you can see the rehearsal marks move in the background, behind the dialog box. If you click Cancel in the edit styles dialog, MuseScore thinks that no changes have been made, but the markers have been moved.

Attachment Size
rmark_test.mscz 4.96 KB

Comments

Priority P0 - Critical

Confirmed. Seems unique to rehearsal marks? I also note autoplace was turned off for these, but that doesn't seem relevant, same thing happens with it enabled, and disabling it for staff text doesn't cause them to move. Probably something in the special code for aligning the rehearsal marks is clearing the offsets.

I tried it with measure numbers and they were fine. I tried debugging this, but did not see where the change was happening. Any time a user changes most any setting in this dialog box, the score's layout is completely refreshed. That seems a bit extreme:
https://github.com/musescore/MuseScore/blob/cb404f90f2f77ad333ac3be70da…
Score::update() refreshes the entire store, from start to end.
I turned off autoplace for these two because I had autoplaced them. Though that checkbox doesn't seem to be working 100%, at least for rehearsal marks.

Can you attach a score and steps to reproduce problems with elements other than rehearsal marks? Note that even if you use a different text style, it's still a rehearsal amrk if it starts life as a rehearsal mark. Check the status bar - if it says rehearsal mark, that is what it is, regardless of text style.