Ottava lines: continuation text aligned incorrectly

• Jun 13, 2019 - 11:18
Reported version
3.1
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.1.0.7205, revision: 3a2fb25

  1. Open the attached score and apply an 8va alta across MM 10-11.
  2. Set both Beginning and Continuation text to Alignment = Left and Placement = Auto.
    Expected result: Both texts should be aligned the same.
    Actual result: Beginning text looks correct, but Continuation text overlaps the line.
Attachment Size
ottava_continuation.mscz 16.25 KB

Comments

Status active needs info

I can't reproduce, the alignment just works for both Begin and Continuation text.
What is strange is that is needed to change that alignment in the first place, on a score creared from scratch they default to left alinged, in your thex default to right aligned

Status needs info active

Actually can reproduce, it is the Automatic setting that is triggering it. But that isn't the default here, so why change it?

Why change it indeed? A text placement of “Auto” only makes sense if you would like other factors to determine whether the text is placed above, below, or to the left of the line. As far as I can tell, this does not happen anywhere, so PlaceText::AUTO does not seem to have a purpose that I can see. Even so, we could still check if the continuation text placement is set to “Auto” during layout like we do for the begin text placement. See https://github.com/mattmcclinch/MuseScore/commit/1f7affd.

Another thing I noticed is that changing the text placement to “Above” or “Below” does not place the text above or below the line like you might expect.