summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-08-30 20:55:29 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-08-30 20:55:29 +0000
commit4089e4ac5fd3199338c76e39c8580d139c48942e (patch)
tree00c9689bd29891856e2aa33f918fd71648e6ea4b /src
parentTranslations. Usual POT stuff, and French translation update. (diff)
downloadinkscape-4089e4ac5fd3199338c76e39c8580d139c48942e.tar.gz
inkscape-4089e4ac5fd3199338c76e39c8580d139c48942e.zip
fix compilation after const change in r10589
(bzr r10605)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/emf-win32-print.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/extension/internal/emf-win32-print.cpp b/src/extension/internal/emf-win32-print.cpp
index 00486e5e3..87638045c 100644
--- a/src/extension/internal/emf-win32-print.cpp
+++ b/src/extension/internal/emf-win32-print.cpp
@@ -917,12 +917,12 @@ PrintEmfWin32::text(Inkscape::Extension::Print * /*mod*/, char const *text, Geom
// Transparent text background
SetBkMode(hdc, TRANSPARENT);
- p = p * tf;
- p[Geom::X] = (p[Geom::X] * IN_PER_PX * dwDPI);
- p[Geom::Y] = (p[Geom::Y] * IN_PER_PX * dwDPI);
+ Geom::Point p2 = p * tf;
+ p2[Geom::X] = (p2[Geom::X] * IN_PER_PX * dwDPI);
+ p2[Geom::Y] = (p2[Geom::Y] * IN_PER_PX * dwDPI);
- LONG const xpos = (LONG) round(p[Geom::X]);
- LONG const ypos = (LONG) round(rc.bottom-p[Geom::Y]);
+ LONG const xpos = (LONG) round(p2[Geom::X]);
+ LONG const ypos = (LONG) round(rc.bottom - p2[Geom::Y]);
{
gunichar2 *unicode_text = g_utf8_to_utf16( text, -1, NULL, NULL, NULL );