Saving/reloading score after editing a dynamic causes linked elements to lose edits
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
1) create a score with a linked extracted part
2) add a dynamic to the full score
3) edit the dynamic text
4) observe that it appears to have correctly updated the linked part
5) save, close and reload score
6) observe that linked part dynamic has reverted to original dynamic
Appears to be due to Dynamic::endEdit() not updating the dynamicType for linked elements, which causes saving the dynamic to ignore the xmlText.
Also interestingly no matter what you modify the dynamic text to (e.g. from p to pp) it always sets the dynamicType of the edited element to "other", rather than whatever matches the text you typed. This would have consequences with exporting to musicxml etc., and obviously the default velocity applied.
Fix version
4.1.0
Comments
As this is loosing information/corrupting the score.
In reply to As this is loosing… by Jojo-Schmitz
The fact that nobody's noticed until now suggests it isn't really all that critical. I guess it's pretty rare people edit the text of a dynamic after creating a linked part extract. And you haven't actually lost your edits, it's just that they're only saved for the dynamic that you edited directly.
See https://github.com/musescore/MuseScore/pull/9126
According to this comment, this issue has been fixed for MuseScore 4.1.
Automatically closed -- issue fixed for 2 weeks with no activity.