From: knutux Date: Wed, 3 May 2006 05:35:47 +0000 (+0000) Subject: small update for 1480247 fix (cleaned up the redundant code) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ba16fc99824b793b9eb24704faaedb0cb038bd24;p=inkscape.git small update for 1480247 fix (cleaned up the redundant code) --- diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp index 5211ee9a1..befd2ff32 100644 --- a/src/ui/widget/page-sizer.cpp +++ b/src/ui/widget/page-sizer.cpp @@ -295,17 +295,15 @@ PageSizer::setDim (double w, double h, bool update) void PageSizer::setDoc (double w, double h) { - setDim (w, h); - if (SP_ACTIVE_DESKTOP && !_wr->isUpdating()) { SPDocument *doc = sp_desktop_document(SP_ACTIVE_DESKTOP); Unit const& unit = _rum._sel->getUnit(); sp_document_set_width (doc, w / unit.factor, &_px_unit); sp_document_set_height (doc, h / unit.factor, &_px_unit); sp_document_done (doc); + } else { + setDim (w, h); } - - setDim (w, h); } /**