summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-24 20:17:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-08-25 11:28:45 +0200
commit78d3041776d02b9a816414a899b350f27f3a699f (patch)
treeaed5eeb53e54a83921b96a1dcd78c4fc38a323d7 /xmloff
parentfcd673519c6bb0836250aeb2db5f4ce7c2a095bf (diff)
cid#1452763 Unchecked return value
Change-Id: Ib2fa604f7c7635892221db4efa4c44f4f542b622 Reviewed-on: https://gerrit.libreoffice.org/78067 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/QRCodeContext.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmloff/source/draw/QRCodeContext.cxx b/xmloff/source/draw/QRCodeContext.cxx
index bf0f4c0469d2..5e4271377f9a 100644
--- a/xmloff/source/draw/QRCodeContext.cxx
+++ b/xmloff/source/draw/QRCodeContext.cxx
@@ -78,7 +78,9 @@ QRCodeContext::QRCodeContext(SvXMLImport& rImport, sal_uInt16 nPrfx, const OUStr
if (IsXMLToken(aLocalName, XML_QRCODE_BORDER))
{
- sax::Converter::convertNumber(aQRCode.Border, sValue, 0);
+ sal_Int32 nAttrVal;
+ if (sax::Converter::convertNumber(nAttrVal, sValue, 0))
+ aQRCode.Border = nAttrVal;
}
break;