summaryrefslogtreecommitdiff
path: root/xmloff/source/draw
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-07-08 12:12:49 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-07-09 05:46:32 +0200
commit2e25618fe7370e9f378da0b03bca8fac471f01f3 (patch)
tree7833a6540163562aa16763c17db40b39c69add9a /xmloff/source/draw
parentaa7cf0ec4b7eb9bd709ba695461578311b5ffae8 (diff)
Make convert*Angle strict
Only the permitted units are accepted, and must follow the number immediately. Change-Id: Iccfcbe044334f28f31ba0f8e336f96e6147af694 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170137 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r--xmloff/source/draw/ximpshap.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index f433107d4eb9..5e4354a5c7ec 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -1157,15 +1157,15 @@ bool SdXMLEllipseShapeContext::processAttribute( const sax_fastparser::FastAttri
case XML_ELEMENT(DRAW, XML_START_ANGLE):
{
double dStartAngle;
- if (::sax::Converter::convertAngle( dStartAngle, aIter.toView(), 100))
- mnStartAngle = static_cast<sal_Int32>(basegfx::fround(dStartAngle));
+ if (::sax::Converter::convertAngle( dStartAngle, aIter.toView()))
+ mnStartAngle = static_cast<sal_Int32>(basegfx::fround(dStartAngle * 100));
break;
}
case XML_ELEMENT(DRAW, XML_END_ANGLE):
{
double dEndAngle;
- if (::sax::Converter::convertAngle( dEndAngle, aIter.toView(), 100))
- mnEndAngle = static_cast<sal_Int32>(basegfx::fround(dEndAngle));
+ if (::sax::Converter::convertAngle( dEndAngle, aIter.toView()))
+ mnEndAngle = static_cast<sal_Int32>(basegfx::fround(dEndAngle * 100));
break;
}
default: