From ada8703780042602aa7e669022c804846e3167b3 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sat, 29 Dec 2007 00:45:04 +0000 Subject: [PATCH] correct build_gridspage --- src/ui/dialog/document-properties.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index 7bbafcea0..20413417b 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -456,11 +456,6 @@ DocumentProperties::build_gridspage() } _grids_combo_gridtype.set_active_text( CanvasGrid::getName(GRID_RECTANGULAR) ); - for (GSList const * l = nv->grids; l != NULL; l = l->next) { - Inkscape::CanvasGrid * grid = (Inkscape::CanvasGrid*) l->data; - _grids_notebook.append_page(grid->getWidget(), grid->repr->attribute("id")); - } - _grids_space.set_size_request (SPACE_SIZE_X, SPACE_SIZE_Y); _grids_vbox.set_spacing(4); @@ -471,6 +466,8 @@ DocumentProperties::build_gridspage() _grids_vbox.pack_start(_grids_notebook, false, false); _grids_vbox.pack_start(_grids_button_remove, false, false); _grids_button_remove.hide(); + + update_gridspage(); } -- 2.30.2