summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorMartin Sucha <martin.sucha-inkscape@jts-sro.sk>2011-04-02 22:24:03 +0000
committerMartin Sucha <martin.sucha-inkscape@jts-sro.sk>2011-04-02 22:24:03 +0000
commit47df2f918a30880162874991c71bd9bc6368906c (patch)
tree4962e77242b985f4279ea3cbd15458e19dd031e1 /src/document.cpp
parentFaster rounding for Gaussian blur (diff)
downloadinkscape-47df2f918a30880162874991c71bd9bc6368906c.tar.gz
inkscape-47df2f918a30880162874991c71bd9bc6368906c.zip
Fix setting canvas margins when using "Resize page to drawing or selection"
(bzr r10145)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 67ce3e26a..c9b822ce6 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -632,9 +632,9 @@ void SPDocument::fitToRect(Geom::Rect const &rect, bool with_margins)
margin_units = &px;
}
margin_top = nv->getMarginLength("fit-margin-top",margin_units, &px, w, h, false);
- margin_top = nv->getMarginLength("fit-margin-left",margin_units, &px, w, h, true);
- margin_top = nv->getMarginLength("fit-margin-right",margin_units, &px, w, h, true);
- margin_top = nv->getMarginLength("fit-margin-bottom",margin_units, &px, w, h, false);
+ margin_left = nv->getMarginLength("fit-margin-left",margin_units, &px, w, h, true);
+ margin_right = nv->getMarginLength("fit-margin-right",margin_units, &px, w, h, true);
+ margin_bottom = nv->getMarginLength("fit-margin-bottom",margin_units, &px, w, h, false);
}
}