Bad drawing of selection rectangle when selection ends with disabled segment
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:
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.