diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-07-06 15:01:59 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-07-06 15:01:59 +0000 |
| commit | d04405f745da587b2a3ccca8d2ca7bf49edf2d4d (patch) | |
| tree | 6ff9bee696703f2de19e81a1a4727e4dbbae8e46 /src/ui/widget | |
| parent | Ported measure-context.cpp (to do: port widgets/measure-toolbar.cpp so unit s... (diff) | |
| download | inkscape-d04405f745da587b2a3ccca8d2ca7bf49edf2d4d.tar.gz inkscape-d04405f745da587b2a3ccca8d2ca7bf49edf2d4d.zip | |
Switch setWidth and setHeight to use Quantity and switch to forward declaration of Inkscape::Util::Quantity in document.h.
(bzr r12380.1.7)
Diffstat (limited to 'src/ui/widget')
| -rw-r--r-- | src/ui/widget/page-sizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp index cceb3f600..884f9ea0a 100644 --- a/src/ui/widget/page-sizer.cpp +++ b/src/ui/widget/page-sizer.cpp @@ -480,8 +480,8 @@ PageSizer::setDim (double w, double h, bool changeList) if (SP_ACTIVE_DESKTOP && !_widgetRegistry->isUpdating()) { SPDocument *doc = sp_desktop_document(SP_ACTIVE_DESKTOP); double const old_height = doc->getHeight(); - doc->setWidth (w, &_px_unit); - doc->setHeight (h, &_px_unit); + doc->setWidth (Inkscape::Util::Quantity(w, &_px_unit)); + doc->setHeight (Inkscape::Util::Quantity(h, &_px_unit)); // 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 - h))); |
