diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-09-23 00:26:44 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-09-23 00:26:44 +0000 |
| commit | 37b7de3efa31c7aa3094aed7c849a08e7f7bedfd (patch) | |
| tree | 46af51535782ad2c83139055b411f2a8b10853e4 /src/ui/widget/page-sizer.cpp | |
| parent | Fixed bug in last commit. (diff) | |
| download | inkscape-37b7de3efa31c7aa3094aed7c849a08e7f7bedfd.tar.gz inkscape-37b7de3efa31c7aa3094aed7c849a08e7f7bedfd.zip | |
Fix percentage document size handling.
Fixed bugs:
- https://launchpad.net/bugs/1228852
(bzr r12577)
Diffstat (limited to 'src/ui/widget/page-sizer.cpp')
| -rw-r--r-- | src/ui/widget/page-sizer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp index 051937c43..2379dc181 100644 --- a/src/ui/widget/page-sizer.cpp +++ b/src/ui/widget/page-sizer.cpp @@ -474,6 +474,8 @@ PageSizer::setDim (Inkscape::Util::Quantity w, Inkscape::Util::Quantity h, bool _changedw_connection.block(); _changedh_connection.block(); + _unit = w.unit->abbr; + if (SP_ACTIVE_DESKTOP && !_widgetRegistry->isUpdating()) { SPDocument *doc = sp_desktop_document(SP_ACTIVE_DESKTOP); Inkscape::Util::Quantity const old_height = doc->getHeight(); |
