diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2013-08-29 21:28:08 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2013-08-29 21:28:08 +0000 |
| commit | 3c4acd93fbc00c466d24b74f05d874dc2d7d6b95 (patch) | |
| tree | 286ab7b631fa9e3f0d7dc569249b6483c7679308 /src/extension/internal/wmf-print.cpp | |
| parent | merge from trunk (r12487) (diff) | |
| download | inkscape-3c4acd93fbc00c466d24b74f05d874dc2d7d6b95.tar.gz inkscape-3c4acd93fbc00c466d24b74f05d874dc2d7d6b95.zip | |
adapt to changes in r12471 (unit refactoring)
(bzr r11668.1.76)
Diffstat (limited to 'src/extension/internal/wmf-print.cpp')
| -rw-r--r-- | src/extension/internal/wmf-print.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/extension/internal/wmf-print.cpp b/src/extension/internal/wmf-print.cpp index e91a74b20..b7ab49b57 100644 --- a/src/extension/internal/wmf-print.cpp +++ b/src/extension/internal/wmf-print.cpp @@ -45,8 +45,7 @@ #include "inkscape-version.h" #include "sp-root.h" - -#include "unit-constants.h" +#include "util/units.h" #include "extension/system.h" #include "extension/print.h" @@ -336,7 +335,7 @@ unsigned int PrintWmf::begin (Inkscape::Extension::Print *mod, SPDocument *doc) if (bbox) d = *bbox; } - d *= Geom::Scale(IN_PER_PX); // 90 dpi inside inkscape, wmf file will be 1200 dpi + d *= Geom::Scale(Inkscape::Util::Quantity::convert(1, "px", "in")); // 90 dpi inside inkscape, wmf file will be 1200 dpi /* -1/1200 in next two lines so that WMF read in will write out again at exactly the same size */ float dwInchesX = d.width() - 1.0/1200.0; |
