trunk: unit selector in tool contexts triggers crash on undo of default units change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Alvin Penner |
Bug Description
With current trunk, a rectangle which has a custom position of the rotation center resizes unexpectedly if this object is selected while the document default units are changed in the 'Document Properties' dialog.
Steps to reproduce:
1) launch current trunk (default prefs, default new doc, locale: en_US)
2) draw a rect
3) move the rotation center away from default position
4) keep rect selected
5) open 'Document Properties' and change default units (e.g. to 'mm')
Expected result:
The rulers reflect the change of the default units, the object(s) on-canvas stay unchanged (same size & position relative to page area)
Actual result:
The selected object changes in scale when default units are changed.
Inkscape crashes when attempting to undo the latest changes:
6) close 'Document Properties'
7) apply 'Edit > Undo' (or 'Ctrl+Z') twice
--> crash:
**
ERROR:.
Based on tests with archived builds on OS X 10.7.5:
- not reproduced with stable 0.48.4, 0.48.5
- not reproduced with 0.48+devel rev <= 12552
- reproduced with 0.48+devel rev >= 12555;
this regression appears to be related to the merge of the GSoC unit-improvements branch in r12554:
<http://
Reproduced with Inkscape 0.48+devel r13466 on OS X 10.7.5.
Related branches
summary: |
trunk: rectangle with repositioned rotation center scales if selected - while document units are changed + while document units are changed (rev >= 12554) |
Changed in inkscape: | |
status: | New → Confirmed |
Changed in inkscape: | |
importance: | Undecided → Medium |
tags: | added: crash |
tags: | added: blocker |
summary: |
- trunk: rectangle with repositioned rotation center scales if selected - while document units are changed (rev >= 12554) + trunk: unit selector in tool contexts triggers crash on undo of default + units change |
Changed in inkscape: | |
assignee: | nobody → Alvin Penner (apenner) |
tags: | removed: blocker |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
The regression appears to be triggered as soon as a rectangle earlier in the stack has a transformed rotation center - any rectangle stacked above and selected while default units are changed will get rescaled.