summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/document-properties.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-12-29 00:45:04 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-12-29 00:45:04 +0000
commitc7666ce5d5d1a730a7abfd7cab80630d9cd4debc (patch)
tree0456cc4e53041c3beb5f367e137e07a132b08224 /src/ui/dialog/document-properties.cpp
parentAdd icons to document properties grid table :-) (diff)
downloadinkscape-c7666ce5d5d1a730a7abfd7cab80630d9cd4debc.tar.gz
inkscape-c7666ce5d5d1a730a7abfd7cab80630d9cd4debc.zip
correct build_gridspage
(bzr r4330)
Diffstat (limited to 'src/ui/dialog/document-properties.cpp')
-rw-r--r--src/ui/dialog/document-properties.cpp7
1 files 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();
}