summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-08-28 01:26:29 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-08-28 01:26:29 +0000
commit7dc2527975e5af02aa0b737d9a67e70bda62bfae (patch)
tree37256fbdbb1baeb7dd78ae1a9fbe530f27f82c21
parentRemove no longer used file "share/ui/units.txt". (diff)
downloadinkscape-7dc2527975e5af02aa0b737d9a67e70bda62bfae.tar.gz
inkscape-7dc2527975e5af02aa0b737d9a67e70bda62bfae.zip
Fix Windows build.
(bzr r12475.1.5)
-rw-r--r--src/extension/internal/emf-win32-print.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/extension/internal/emf-win32-print.cpp b/src/extension/internal/emf-win32-print.cpp
index 621954f68..467260a92 100644
--- a/src/extension/internal/emf-win32-print.cpp
+++ b/src/extension/internal/emf-win32-print.cpp
@@ -113,8 +113,8 @@ unsigned int PrintEmfWin32::begin (Inkscape::Extension::Print *mod, SPDocument *
WCHAR *unicode_uri = (WCHAR *) unicode_fn;
// width and height in px
- _width = doc->getWidth();
- _height = doc->getHeight();
+ _width = doc->getWidth().value("px");
+ _height = doc->getHeight().value("px");
bool pageBoundingBox;
pageBoundingBox = mod->get_param_bool("pageBoundingBox");
@@ -204,7 +204,7 @@ unsigned int PrintEmfWin32::begin (Inkscape::Extension::Print *mod, SPDocument *
g_free(local_fn);
g_free(unicode_fn);
- m_tr_stack.push( Geom::Scale(1, -1) * Geom::Translate(0, doc->getHeight())); /// @fixme hardcoded doc2dt transform
+ m_tr_stack.push( Geom::Scale(1, -1) * Geom::Translate(0, doc->getHeight().value("px"))); /// @fixme hardcoded doc2dt transform
return 0;
}