From 14b6891e5d84dc76829749d888e9dd769c037ebb Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 20 Dec 2011 23:07:22 +0100 Subject: when resizing page, move the origin of the grids too. This way all objects will stay aligned to the grids. (bzr r10787) --- src/document.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/document.cpp') 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); -- cgit v1.2.3