summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 7a77be7d0fa3..c4fc1b294187 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -852,18 +852,18 @@ void SdXMLShapeContext::processAttribute( sal_uInt16 nPrefix, const OUString& rL
GetImport().GetMM100UnitConverter().convertMeasureToCore(
maSize.Width, rValue);
if (maSize.Width > 0)
- maSize.Width = o3tl::saturating_add(maSize.Width, 1);
+ maSize.Width = o3tl::saturating_add<sal_Int32>(maSize.Width, 1);
else if (maSize.Width < 0)
- maSize.Width = o3tl::saturating_add(maSize.Width, -1);
+ maSize.Width = o3tl::saturating_add<sal_Int32>(maSize.Width, -1);
}
else if( IsXMLToken( rLocalName, XML_HEIGHT ) )
{
GetImport().GetMM100UnitConverter().convertMeasureToCore(
maSize.Height, rValue);
if (maSize.Height > 0)
- maSize.Height = o3tl::saturating_add(maSize.Height, 1);
+ maSize.Height = o3tl::saturating_add<sal_Int32>(maSize.Height, 1);
else if (maSize.Height < 0)
- maSize.Height = o3tl::saturating_add(maSize.Height, -1);
+ maSize.Height = o3tl::saturating_add<sal_Int32>(maSize.Height, -1);
}
else if( IsXMLToken( rLocalName, XML_TRANSFORM ) )
{