From ba16fc99824b793b9eb24704faaedb0cb038bd24 Mon Sep 17 00:00:00 2001 From: knutux Date: Wed, 3 May 2006 05:35:47 +0000 Subject: [PATCH] small update for 1480247 fix (cleaned up the redundant code) --- src/ui/widget/page-sizer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } /** -- 2.39.5