diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-08-28 03:32:14 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-08-28 03:32:14 +0000 |
| commit | 3bfb610bb7719d49821fe5381ae449789c3cb968 (patch) | |
| tree | c6c221e0c7bfcc6399ee4aee360b7b1d4de3f896 /src/document.cpp | |
| parent | Use Quantity comparisons in PageSizer. (diff) | |
| download | inkscape-3bfb610bb7719d49821fe5381ae449789c3cb968.tar.gz inkscape-3bfb610bb7719d49821fe5381ae449789c3cb968.zip | |
Improve code readability.
(bzr r12475.1.9)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp index 20c6fe331..a544c60c9 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -980,7 +980,7 @@ void SPDocument::setupViewport(SPItemCtx *ctx) if (root->viewBox_set) { // if set, take from viewBox ctx->viewport = root->viewBox; } else { // as a last resort, set size to A4 - ctx->viewport = Geom::Rect::from_xywh(0, 0, 210 * Inkscape::Util::Quantity::convert(1, "mm", "px"), 297 * Inkscape::Util::Quantity::convert(1, "mm", "px")); + ctx->viewport = Geom::Rect::from_xywh(0, 0, Inkscape::Util::Quantity::convert(210, "mm", "px"), Inkscape::Util::Quantity::convert(297, "mm", "px")); } ctx->i2vp = Geom::identity(); } |
