summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2013-12-26 18:57:28 +0000
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-01-01 18:04:41 +0000
commit942af58387a4720e8c5344787fa4584ca23a6c81 (patch)
tree82eb4ab21a5ba9eff62aefe1cc035725ccf7af24
parente93c54652931e47b82a6711896f8269079097d48 (diff)
EMF+: Integer coordinate values are signed.
Change-Id: I5babcec50d48dc2a6288a01685db61fbb7058680 (cherry picked from commit d8dedc775cedf0e9daf9284bc7e3a0331ccd2963)
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index be0588d02c16..906401e9f355 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -174,8 +174,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;
EMFP_DEBUG (printf ("EMF+\tpoint [x,y]: %hd,%hd\n", x, y));