User lines do not preserve correct appearance when saved to palette

• Nov 9, 2015 - 13:08
Priority
P2 - Medium
Type
Functional
Severity
S4 - Minor
Status
active
Regression
No
Workaround
No
Project

Nightly d45cc19 / Win 7.

When the user creates and saves lines to a palette, the appearance in the palette may differ from that in the score. This isn't a new bug but it seems to have come to the fore as accompanying text property issues have been fixed in the latest nightlies.

1. Quickly create a new score. Chose the "treble clef" template (the text styles should be the default ones).
2. In "Style > Text > Text line", change "horizontal alignment" to right. Exit.
3. Drop a guitar barre line onto the score from the advanced lines palette.
4. Right-click on it, go into line properties and change "Begin > Place" to "Above." Exit. Observe the appearance of the line.
5. Save the line in a palette by ctrl + shift and drag.

Expected result: Line in palette preserves correct score appearance
Actual result: Line looks markedly different in the palette.

This seems to be a palette WYSIWYG issue because if you apply the new line to the score it assumes its correct appearance.


Comments

Confirmed. The code for rendering lines in the palette has a number of special cases because lines in the palette aren't attached to specific elements like ordinary lines, so apparently we are getting something wrong in calculating offsets.

For the record, here's a screenshot of how it looks on my system after folllowing the above instructions. Palette on left obviously, the actual line on right:

palette-line.png

Reported version 2.1 3.x-dev

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.2.0.7557, revision: a161a57

Looks fixed in this nightly.