Rectangle tool: Rx, Ry boxes are unbounded
Migrated from: https://bugs.launchpad.net/inkscape/+bug/846299
Steps to reproduce:
- open Inkscape
- Select the Rectangle tool
- Draw a rectangle
- Click and hold down the up arrow button next to the Ry: label in the Tool Controls Bar
What happened?
The value continues to increase above min(width/height)/2. The handle moves out of the rectangle. Attempting to move the handle makes it jump to its maximum position.
What should have happened?
The value should be bounded to a sensible maximum.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (c990a67, 2020-04-09)
- Operating System: Windows 10
- Operating System version: 10.0.18362
Migration info
Replicated since 2011.
Comment 3 raises a concern about multi-rectangle selections:
You want to have the same (dynamic) bounds in the spinbox controls as are in effect when dragging a corner handle on-canvas (cannot be dragged beyond height/2 or width/2)?
AFAIU using such bounds would not work well with multiple rectangles selected when switching to the rectangle tool (it doesn't make much sense to use an averaged width or height for the bounds in this case - maybe one could limit the max corner radius for multi-shape editing to 0.5 * max width|max height. This would not prevent from having some of the handles placed outside the actual bbox).
In Comment 9, a fix is attached: fix.diff. According to Comment 10 by Mc, this fix segfaults when creating a new rectangle.