Bad drawing of selection rectangle when selection ends with disabled segment

• Apr 15, 2019 - 05:56
Reported version
3.0
Priority
P2 - Medium
Type
Graphical (UI)
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
fixed
Regression
No
Workaround
No
Project

1) default score
2) enter four quarter notes on last bar of first system
3) place a key signature and time signature change at the start of second system
4) remove them
5) select last bar of first system

Result: bad drawing of selection rectangle:

2019-04-14 (3).png

Problem has to do with bad layout info on the now-disabled segments. Fix might seem to be to skip disabled segments while building the selection rectangle, but actually, the selection itself is arguably at fault, as the end segment is the disabled courtesy time signature. On the other hand, messing with drawing of rectangles in scoreview is less risky than messing with selection. So I propose drawing from first enabled to last enabled segment.


Comments