From b795e540e4c4d31618a16ca8456476d5651a4d01 Mon Sep 17 00:00:00 2001 From: Regina Henschel Date: Fri, 8 Mar 2019 19:02:13 +0100 Subject: 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 --- svx/source/customshapes/EnhancedCustomShapeGeometry.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx') 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[] = { -- cgit