diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-12-23 21:52:57 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-12-23 21:52:57 +0000 |
| commit | e3419bb543e45af283e00410d9a84bbd689d3c5f (patch) | |
| tree | a46e98259765763012920cdac6f56dddbe42ca89 /src/ui/dialog/document-properties.cpp | |
| parent | fix angle description of guides (diff) | |
| download | inkscape-e3419bb543e45af283e00410d9a84bbd689d3c5f.tar.gz inkscape-e3419bb543e45af283e00410d9a84bbd689d3c5f.zip | |
fix crit bug #168570 Crash when recreating grid using 'redo'
(bzr r4289)
Diffstat (limited to 'src/ui/dialog/document-properties.cpp')
| -rw-r--r-- | src/ui/dialog/document-properties.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
