summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-11-13 14:24:25 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-11-13 14:24:25 +0000
commit09c07deb26109ae0c94068614c6d061f907b5542 (patch)
tree5c3456fe94bce41b12edacf6f470ba6b13dc7936 /src/desktop.cpp
parentmake INX <option> translatable (diff)
downloadinkscape-09c07deb26109ae0c94068614c6d061f907b5542.tar.gz
inkscape-09c07deb26109ae0c94068614c6d061f907b5542.zip
Don't set inkscape:modified on startup when grids are shown/hidden.
(bzr r4077)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 4fc0e5f60..f12d0ffd7 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -308,7 +308,7 @@ SPDesktop::init (SPNamedView *nv, SPCanvas *aCanvas)
// (Setting up after the connections are all in place, as it may use some of them)
layer_manager = new Inkscape::LayerManager( this );
- showGrids(namedview->grids_visible);
+ showGrids(namedview->grids_visible, false);
}
@@ -1196,10 +1196,10 @@ void SPDesktop::toggleGrids()
}
}
-void SPDesktop::showGrids(bool show)
+void SPDesktop::showGrids(bool show, bool dirty_document)
{
grids_visible = show;
- sp_namedview_show_grids(namedview, grids_visible);
+ sp_namedview_show_grids(namedview, grids_visible, dirty_document);
if (show) {
sp_canvas_item_show(SP_CANVAS_ITEM(gridgroup));
} else {