Code

always show grids when adding new grid
authorjohanengelen <johanengelen@users.sourceforge.net>
Sat, 29 Dec 2007 21:46:49 +0000 (21:46 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sat, 29 Dec 2007 21:46:49 +0000 (21:46 +0000)
src/ui/dialog/document-properties.cpp

index 20413417bca5943640e3363234f832ef70863808..d60f1f7ecfc86dab33863c326ad35b8a58b327dc 100644 (file)
@@ -634,6 +634,9 @@ DocumentProperties::onNewGrid()
 
     Glib::ustring typestring = _grids_combo_gridtype.get_active_text();
     CanvasGrid::writeNewGridToRepr(repr, doc, CanvasGrid::getGridTypeFromName(typestring.c_str()));
+
+    // toggle grid showing to ON:
+    dt->showGrids(true);
 }