summaryrefslogtreecommitdiff
path: root/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2019-03-08 19:02:13 +0100
committerRegina Henschel <rb.henschel@t-online.de>2019-03-14 13:30:41 +0100
commitb795e540e4c4d31618a16ca8456476d5651a4d01 (patch)
tree960c6aa717d48e7fa1658eed4d27e09572cf3c92 /svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
parentffcff2fe24ce1fd64b7c45073c09f6d5a5a5d51d (diff)
tdf#122899 use unsigned integer for mso_sptArc
The path coordinates were read as sal_Int16. But for a mso_sptArc shape the values are unsigned integer. I correct it for this shape type only, because I don't know, whether other places actually need sal_Int16. The change from 0xa504 to 0xa604 in the defaults means a change from 'ClockwiseArcTo' to 'ClockwiseArc' so that an implicit moveto is used, same as in VML command 'wr'. Change-Id: Ib9c594c15d5a97048595efd644a4a6e8774fcefd Reviewed-on: https://gerrit.libreoffice.org/68941 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShapeGeometry.cxx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeGeometry.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
index 22533f893eae..ab6d19bcfa07 100644
--- a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
@@ -95,8 +95,8 @@ static const SvxMSDffVertPair mso_sptArcVert[] =
};
static const sal_uInt16 mso_sptArcSegm[] =
{
- 0xa504, 0xab00, 0x0001, 0x6001, 0x8000,
- 0xa504, 0xaa00, 0x8000
+ 0xa604, 0xab00, 0x0001, 0x6001, 0x8000,
+ 0xa604, 0xaa00, 0x8000
};
static const SvxMSDffCalculationData mso_sptArcCalc[] =
{