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/emf-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/emf-print.cpp')
| -rw-r--r-- | src/extension/internal/emf-print.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/extension/internal/emf-print.cpp b/src/extension/internal/emf-print.cpp index 7440b5380..33834bea8 100644 --- a/src/extension/internal/emf-print.cpp +++ b/src/extension/internal/emf-print.cpp @@ -40,14 +40,12 @@ #include "helper/geom.h" #include "helper/geom-curves.h" #include "sp-item.h" +#include "util/units.h" #include "style.h" #include "inkscape-version.h" #include "sp-root.h" - -#include "unit-constants.h" - #include "extension/system.h" #include "extension/print.h" #include "document.h" @@ -342,7 +340,7 @@ unsigned int PrintEmf::begin (Inkscape::Extension::Print *mod, SPDocument *doc) if (bbox) d = *bbox; } - d *= Geom::Scale(IN_PER_PX); + d *= Geom::Scale(Inkscape::Util::Quantity::convert(1, "px", "in")); float dwInchesX = d.width(); float dwInchesY = d.height(); @@ -410,7 +408,7 @@ unsigned int PrintEmf::begin (Inkscape::Extension::Print *mod, SPDocument *doc) g_error("Fatal programming error in PrintEmf::begin at textcomment_set 1"); } - snprintf(buff, sizeof(buff)-1, "Drawing=%.1lfx%.1lfpx, %.1lfx%.1lfmm", _width, _height, dwInchesX * MM_PER_IN, dwInchesY * MM_PER_IN); + snprintf(buff, sizeof(buff)-1, "Drawing=%.1lfx%.1lfpx, %.1lfx%.1lfmm", _width, _height, dwInchesX * Inkscape::Util::Quantity::convert(1, "in", "mm"), dwInchesY * Inkscape::Util::Quantity::convert(1, "in", "mm")); rec = textcomment_set(buff); if(!rec || emf_append((PU_ENHMETARECORD)rec, et, U_REC_FREE)){ g_error("Fatal programming error in PrintEmf::begin at textcomment_set 1"); @@ -1715,7 +1713,7 @@ unsigned int PrintEmf::image( unsigned int w, /** width of bitmap */ unsigned int h, /** height of bitmap */ unsigned int rs, /** row stride (normally w*4) */ - Geom::Affine const &tf_ignore, /** WRONG affine transform, use the one from m_tr_stack */ + Geom::Affine const &/*tf_ignore*/, /** WRONG affine transform, use the one from m_tr_stack */ SPStyle const *style) /** provides indirect link to image object */ { double x1,y1,dw,dh; |
