diff options
| author | Alvin Penner <penner@vaxxine.com> | 2014-12-06 15:25:55 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2014-12-06 15:25:55 +0000 |
| commit | cd5d74b3f192805838e627272a30062c1f1b3937 (patch) | |
| tree | 9568cf4be49f3f628277f965cdf17717c53c0148 /src/ui/widget/page-sizer.cpp | |
| parent | extensions: Also install extensions written in perl, shell, and ruby (diff) | |
| download | inkscape-cd5d74b3f192805838e627272a30062c1f1b3937.tar.gz inkscape-cd5d74b3f192805838e627272a30062c1f1b3937.zip | |
do not recalculate page height unless it is necessary. (Bug 1384915, comment 24)
Fixed bugs:
- https://launchpad.net/bugs/1384915
(bzr r13789)
Diffstat (limited to 'src/ui/widget/page-sizer.cpp')
| -rw-r--r-- | src/ui/widget/page-sizer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp index df464fbb0..a18c3de9d 100644 --- a/src/ui/widget/page-sizer.cpp +++ b/src/ui/widget/page-sizer.cpp @@ -483,8 +483,10 @@ PageSizer::setDim (Inkscape::Util::Quantity w, Inkscape::Util::Quantity h, bool doc->setHeight (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 - Geom::Translate const vert_offset(Geom::Point(0, (old_height.value("px") - h.value("px")))); - doc->getRoot()->translateChildItems(vert_offset); + if (changeSize) { + Geom::Translate const vert_offset(Geom::Point(0, (old_height.value("px") - h.value("px")))); + doc->getRoot()->translateChildItems(vert_offset); + } DocumentUndo::done(doc, SP_VERB_NONE, _("Set page size")); } |
