Custom alignment of text in lines is being lost

• Sep 21, 2018 - 11:17
Reported version
3.0
Type
Functional
Severity
S3 - Major
Status
fixed
Regression
No
Workaround
Yes
Project

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.0.0, revision: 26ad655

See attached score. The line is in measure 5.

  1. In MS 2.3, the guitar barre line in measure 5 was applied from a custom palette (workspace attached below). It looks like this:

textline_2.3.JPG

  1. However, when the score is opened in MS 3.0.0, the same line looks like this:

textline_3.0.JPG

It appears that the program is not honouring the original customised alignment of the text in the line. In MS 2.3 this is shown as "Align right edge etc." in the line's text properties. In MS 3.0.0 this has been reset to "Align left edge etc."

P.S. This problem has also appeared in previous versions of MuseEdit.

Attachment Size
marble_halls.mscz 35 KB
my_workspace.workspace 5.71 KB

Comments

This bug may be related. See attached score.

  1. Click on the text-line.
  2. In the Inspector, change the alignment to "Right."
  3. Save the file.
  4. Reopen it.
  5. Click the "Set as style" button on the "Alignment" line.
  6. Save the file and reopen it.

Expected result: No change.
Actual result: The text-line has returned to left-aligned again!

Attachment Size
slurs.mscz 6.38 KB
Status closed open issues
Regression No
Workaround Yes

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

The appearance of the text lines is still wrong—there is now a large gap between the end of the text and the line:

In 3.0-dev:

text-line_3.png

In 2.x:

text-line_2.x.png

This text-alignment needs to be set to LEFT in the Inspector (3.0-dev) to correct the appearance. But the same-looking line in 2.x has a RIGHT text alignment.

Just to reiterate. To get this line in 2.x, you have to set the text-alignment to RIGHT:
text-line_2.x.png
But to get the same-looking line in 3.0-dev you have to set the text-alignment to LEFT.

Further investigation needed?

P.S. The attached score may be useful.

Attachment Size
text_lines.mscz 9.1 KB

You'll notice that in MS2, if you set the alignment of one of the textlines in the attached score to 'left' instead of 'right', there is an overlap between the text and the line. Because of this, I think that MS2's behaviour is buggy and incorrect, and MS3's behaviour is correct and expected. So, to fix this, should we set any right aligned textlines to be left aligned when reading a 2.x score? Or should we just leave things as they are, and accept a difference in appearence? MS3 doesn't always aim to lay things out exactly the same as in MS2 - if something can be laid out better, that is the goal.

Attachment Size
marble_halls.mscz 35 KB

TheOtherJThistle wrote, "So, to fix this, should we set any right aligned textlines to be left aligned when reading a 2.x score?"

On second thoughts, this seems like the best option.

Do the following observations shed any more light on the issue?

  1. Create a new score in 3.0-dev (just a treble staff will do)
  2. Add a text-line from the Lines palette (Advanced workspace): i.e. the one with the "VII" at the front.
  3. Save and reopen the score.

Result: The text-line retains its correct left-alignment.

  1. Open the "marble_halls" score, created in 2.x, and repeat the above actions.

Result: The alignment changes unexpectedly to right-aligned.

Status open issues fixed

Just to summarise. This fix is needed to maintain the correct horizontal alignment of text lines in imported 2.x files.