[Libreoffice-commits] core.git: xmloff/source
Caolán McNamara
caolanm at redhat.com
Wed Oct 25 19:52:57 UTC 2017
xmloff/source/draw/ximpshap.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 8a79965551b3f59942db9d9a258118b9dd9f6122
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Oct 25 20:51:32 2017 +0100
no matching overload found
Change-Id: I0e1d28c6ee3e95a28e4b66c49de75fcbf9ca65fe
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 ) )
{
More information about the Libreoffice-commits
mailing list