Blob Blame History Raw
From 215499e74fccb1809105d458b6076992be9d049c Mon Sep 17 00:00:00 2001
From: Andrzej Hunt <andrzej.hunt@collabora.com>
Date: Thu, 26 Dec 2013 18:57:28 +0000
Subject: [PATCH 091/109] EMF+: Integer coordinate values are signed.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Previously any coordinates with negative values would not be rendered
(as they would incorrectly appear to be outside the visible area).

(cherry picked from commit d8dedc775cedf0e9daf9284bc7e3a0331ccd2963)

Change-Id: I5babcec50d48dc2a6288a01685db61fbb7058680
Reviewed-on: https://gerrit.libreoffice.org/7247
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
---
 cppcanvas/source/mtfrenderer/emfplus.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index a11dc8b..01a77d6 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -169,8 +169,8 @@ namespace cppcanvas
             {
                 for (int i = 0; i < nPoints; i ++) {
                     if (pathFlags & 0x4000) {
-                        // points are stored in short 16bit integer format
-                        sal_uInt16 x, y;
+                        // points are stored in signed short 16bit integer format
+                        sal_Int16 x, y;
 
                         s >> x >> y;
                         SAL_INFO ("cppcanvas.emf", "EMF+\tpoint [x,y]: " << x << "," << y);
-- 
1.8.4.2