summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 6035ea557..ce8e6d125 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -662,6 +662,7 @@ void SPDocument::fitToRect(Geom::Rect const &rect, bool with_margins)
if(nv) {
Geom::Translate tr2(-rect_with_margins.min());
nv->translateGuides(tr2);
+ nv->translateGrids(tr2);
// update the viewport so the drawing appears to stay where it was
nv->scrollAllDesktops(-tr2[0], tr2[1], false);