From: johanengelen Date: Sun, 23 Dec 2007 21:52:57 +0000 (+0000) Subject: fix crit bug #168570 Crash when recreating grid using 'redo' X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e4a57aae254b38736932128250fe1f7594e8bdd;p=inkscape.git fix crit bug #168570 Crash when recreating grid using 'redo' --- diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index 70e6a9ecc..5ffe3dcb8 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -406,6 +406,7 @@ DocumentProperties::update_gridspage() bool grids_present = false; for (GSList const * l = nv->grids; l != NULL; l = l->next) { Inkscape::CanvasGrid * grid = (Inkscape::CanvasGrid*) l->data; + if (!grid->repr->attribute("id")) continue; // update_gridspage is called again when "id" is added _grids_notebook.append_page(grid->getWidget(), grid->repr->attribute("id")); grids_present = true; }