Pressing ESC while dragging a guide triggers an undo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Liam P. White |
Bug Description
These are the steps to reproduce:
- open a new document;
- drag a guide somewhere;
- select the rectangle tool and draw a rectangle somewhere;
- now with the rectangle tool still selected start dragging the guide clicking inside the origin circle (should not happen, should draw a new rectangle but see bug #1526701);
- while still dragging the guide, press ESC.
What should happen: the dragging of the guide is canceled and the guide goes back to its original position.
What happens: the dragging of the guide is canceled, the guide _does not_ go back to its original position (i.e. it's just detached from the cursor in the current position) and the rectangle disappears!
I guess that the rectangle disappears because an undo is triggered to have the guide go back to its original position but as the operation is not yet completed, the undo acts on the previous one (the rectangle creation). I didn't look into the code so I may be wrong.
P.S.: the same happens also if you change tool before starting dragging the guide, e.g. the select tool; so there's no relation with bug #1526701. It just happened I noticed this because I wanted to draw a second rectangle starting from the guide origin, had the guide move instead of drawing so I pressed ESC to cancel the unwanted move but: a) the guide didn't go back and b) my first rectangle went away.
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Inkscape rev.14536, Windows XP SP3.