diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2015-01-05 09:35:44 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2015-01-05 09:35:44 +0000 |
| commit | f8ba98f4439051bc268013a5aa0b0e2a97a45303 (patch) | |
| tree | 74c44cf15afb1856af20329259c7f62081751ecd /src/ui/widget/page-sizer.cpp | |
| parent | Fix for Bug #1407326 (Typo (toogle) in filletchanferpoinarray.cpp). (diff) | |
| download | inkscape-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.cpp | 3 |
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) { |
