summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-12-20 22:07:22 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-12-20 22:07:22 +0000
commit14b6891e5d84dc76829749d888e9dd769c037ebb (patch)
tree1690b0f2187e754a3fed3ecbe2ef2a94c4af3eba /src/document.cpp
parentfix bug in emphasized line drawing for axonometric grid when origin is not zero (diff)
downloadinkscape-14b6891e5d84dc76829749d888e9dd769c037ebb.tar.gz
inkscape-14b6891e5d84dc76829749d888e9dd769c037ebb.zip
when resizing page, move the origin of the grids too. This way all objects will stay aligned to the grids.
(bzr r10787)
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);