Crash if default template has grid defined (r11370)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Alex Valavanis |
Bug Description
Regression AFAICT introduced in revision 11370:
<http://
Steps to reproduce:
1) add a custom default template with a grid defined (it doesn't matter whether the grid is visible or not)
2) start inkscape, draw a rectangle, enable the grid (menu 'View > Grid'), save and quit
3) launch inkscape without file (opens new document based on custom default template)
4) open the file saved in step 2 from within Inkscape
-> crash
Reproduced with revision >= 11370 on Mac OS X 10.5.8 (32bit) and OS X 10.7.4 (64bit).
Sample files attached:
- 'default.svg' (based on shared default template, save as "$HOME/
- 'drawing-3.svg' (sample drawing with a rectangle, and with visible grid)
Oh no... looks like I've broken things by messing around with the destroy/dispose handling :-(
There's a chance that this will be fixed after the entire SPCanvasItem tree is changed to GObject... or maybe it would be better to revert the changes and do this work in an experimental branch.