From 4089e4ac5fd3199338c76e39c8580d139c48942e Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 30 Aug 2011 22:55:29 +0200 Subject: fix compilation after const change in r10589 (bzr r10605) --- src/extension/internal/emf-win32-print.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 ); -- cgit v1.2.3