summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/page-sizer.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2015-01-05 09:35:44 +0000
committertavmjong-free <tavmjong@free.fr>2015-01-05 09:35:44 +0000
commitf8ba98f4439051bc268013a5aa0b0e2a97a45303 (patch)
tree74c44cf15afb1856af20329259c7f62081751ecd /src/ui/widget/page-sizer.cpp
parentFix for Bug #1407326 (Typo (toogle) in filletchanferpoinarray.cpp). (diff)
downloadinkscape-f8ba98f4439051bc268013a5aa0b0e2a97a45303.tar.gz
inkscape-f8ba98f4439051bc268013a5aa0b0e2a97a45303.zip
Avoid calling root->updateRepr() twice when changing width and height.
(bzr r13837)
Diffstat (limited to 'src/ui/widget/page-sizer.cpp')
-rw-r--r--src/ui/widget/page-sizer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp
index d36c11ace..8c3b44bf5 100644
--- a/src/ui/widget/page-sizer.cpp
+++ b/src/ui/widget/page-sizer.cpp
@@ -479,8 +479,7 @@ PageSizer::setDim (Inkscape::Util::Quantity w, Inkscape::Util::Quantity h, bool
if (SP_ACTIVE_DESKTOP && !_widgetRegistry->isUpdating()) {
SPDocument *doc = SP_ACTIVE_DESKTOP->getDocument();
Inkscape::Util::Quantity const old_height = doc->getHeight();
- doc->setWidth (w, changeSize);
- doc->setHeight (h, changeSize);
+ doc->setWidthAndHeight (w, h, changeSize);
// The origin for the user is in the lower left corner; this point should remain stationary when
// changing the page size. The SVG's origin however is in the upper left corner, so we must compensate for this
if (changeSize) {