Code

correct build_gridspage
authorjohanengelen <johanengelen@users.sourceforge.net>
Sat, 29 Dec 2007 00:45:04 +0000 (00:45 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sat, 29 Dec 2007 00:45:04 +0000 (00:45 +0000)
src/ui/dialog/document-properties.cpp

index 7bbafcea0271678551286670555865b2f789dd48..20413417bca5943640e3363234f832ef70863808 100644 (file)
@@ -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();
 }