diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/HatchStyle.cxx | 11 |
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"); } |