Hidden dynamic symbols become visible 2.X->3.0
Tested with self built MuseScore on OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (32-bit): 3.0.0, revision: 44304ca
- Open attached score
- Go to measure 11
Result: dynamic symbols hidden in 2.3.2 were lost in 3.0.
Attachment | Size |
---|---|
2510026.mscz | 93.71 KB |
Comments
relates to #275344: [EPIC] Displaying elements, position and layout when opening 2.X scores in 3.0
One more case is:
1. Open attached score
2. Go to measure 1 and 5
Result: dynamics are lost in 3.0.
see https://github.com/musescore/MuseScore/pull/3966
Fixed in branch master, commit a5acf08eb3
fix #275361: Hidden dynamic symbols become visible 2.X->3.0
Error was that we need always call element::layout() method. Otherwise position of elements are (0.0 0.0). And painter doesn't draw elements with this position.
And now layout() is called for both visible and invisible elements, but invisible ones don't participate in autoplacement operations, so there is neither performance impact nor invisible elements autoplacement.
This leads to invisible elements collision if you switch visibility, but it is expected I believe, since we position elements for printing, but invisible elements are for playback.
Fixed in branch master, commit 9851aacb2d
Merge pull request #3966 from handrok/#275361-Hidden_elements
fix #275361: Hidden dynamic symbols become visible 2.X->3.0
Automatically closed -- issue fixed for 2 weeks with no activity.