summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-15 20:32:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-16 09:29:43 +0200
commitd49c33bb3dfeed8e1ed9b07cc5b1a4587f918c75 (patch)
tree7da3a24088b79ef7b79bf6e0d0e4a67091329e63 /xmloff
parent9f3a68efcdf53b1ec2ca8736943f00aeae6e642d (diff)
cid#1448448 Unchecked return value
Change-Id: I195cc073ff7557d30fbffcb97778751908634303 Reviewed-on: https://gerrit.libreoffice.org/75660 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/style/HatchStyle.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/xmloff/source/style/HatchStyle.cxx b/xmloff/source/style/HatchStyle.cxx
index c23ff4b719c8..899223754c61 100644
--- a/xmloff/source/style/HatchStyle.cxx
+++ b/xmloff/source/style/HatchStyle.cxx
@@ -125,13 +125,12 @@ void XMLHatchStyleImport::importXML(
rUnitConverter.convertMeasureToCore(aHatch.Distance, rStrValue);
break;
case XML_TOK_HATCH_ROTATION:
- {
- sal_Int32 nValue;
- ::sax::Converter::convertNumber(nValue, rStrValue, 0, 3600);
- aHatch.Angle = sal_Int16( nValue );
- }
+ {
+ sal_Int32 nValue;
+ if (::sax::Converter::convertNumber(nValue, rStrValue, 0, 3600))
+ aHatch.Angle = sal_Int16(nValue);
break;
-
+ }
default:
SAL_INFO("xmloff.style", "Unknown token at import hatch style");
}