summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 03373b59e..859e15bd8 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -1154,7 +1154,7 @@ void SPDesktop::toggleGrid()
} else {
//there is no grid present at the moment. add a rectangular grid and make it visible
Inkscape::XML::Node *repr = SP_OBJECT_REPR(namedview);
- Inkscape::CanvasGrid::writeNewGridToRepr(repr, Inkscape::GRID_RECTANGULAR);
+ Inkscape::CanvasGrid::writeNewGridToRepr(repr, sp_desktop_document(this), Inkscape::GRID_RECTANGULAR);
grids_visible = true;
sp_canvas_item_show(SP_CANVAS_ITEM(gridgroup));
}