The "Line" disappears if end point is to left of start point

• Oct 3, 2014 - 12:57
Type
Functional
Severity
S4 - Minor
Status
closed
Project

MuseScore 2.0 Beta1 (ditto in Nightly, October 2) /Windows7

First reported on the French forum: http://musescore.org/fr/node/35156

1. Open default score

2. Open the Lines palette -> Drag and drop a Line (single Line) on the score

3.Double-click to edit its length and position

Result: everything is ok until this line does not exceed the vertical position.
1line.jpg

Beyond that, it disappears.
2line.jpg

This bug appeared between the commit , correct (August 22, 11:07 p.m.): https://github.com/musescore/MuseScore/pull/1201

and the commit, incorrect (August 23, 6:39 p.m.) : https://github.com/musescore/MuseScore/pull/1153

So, maybe here: https://github.com/musescore/MuseScore/pull/1205

or (?, less likely): https://github.com/musescore/MuseScore/commit/d16e51e433e3027a157765af7…

or others (?): a lot of activity this day of 23 August.

- You will notice that "before" that (in the correct Nightly), the default length of the line was very short.
3line.jpg

And "after", it had the default length of the measure. Cause and effect?

4line.jpg

Attachment Size
1line.jpg 14.14 KB
2line.jpg 12.2 KB
3line.jpg 5.33 KB
4line.jpg 5.77 KB

Comments

Yes, good work again narrowing it down! Part of the fix for short pedal and other types of lines was to prevent them from being drawn "backwards" (if endpoint of line is to left of end of text) but obviously that shouldn't apply to simple lines as well. Should be an easy fix.

Status (old) active patch (code needs review)

https://github.com/musescore/MuseScore/pull/1349

Regarding the ghost images on drag, you should see those for any text line where the line itself is not drawn because it would be shorter than the text but also for any diagonal line with text. In the latter case, you would also find difficulties selecting the textline. This is also fixed in the PR.