diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2011-12-20 22:07:22 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2011-12-20 22:07:22 +0000 |
| commit | 14b6891e5d84dc76829749d888e9dd769c037ebb (patch) | |
| tree | 1690b0f2187e754a3fed3ecbe2ef2a94c4af3eba /src/document.cpp | |
| parent | fix bug in emphasized line drawing for axonometric grid when origin is not zero (diff) | |
| download | inkscape-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.cpp | 1 |
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); |
