Hi all,
I have a problem that I do not know how to fix. When a grid is created and then Undo is pressed, things work great. However, then "redo" crashes inkscape (when grid tab of document properties is open). This is because of the following reason: when redo is done, a new child is added to sodipodi:namedview, this triggers updating of the documentproperties gridpage. However, at that time, the "id" attribute of the child has not been set yet. (I don't know at what time it is set, but sp_namedview_child_added is called with a child that has no 'id' attribute! This attribute is needed, because it provides the grid's name to put in the tab in the dialog.
I'd like to know how I should solve this (i.e. obtaining the 'id' attribute when a 'redo' action is performed).
Thanks! Johan