From 0e4a57aae254b38736932128250fe1f7594e8bdd Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 23 Dec 2007 21:52:57 +0000 Subject: [PATCH] fix crit bug #168570 Crash when recreating grid using 'redo' --- src/ui/dialog/document-properties.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2