diff options
Diffstat (limited to 'xmloff/source/transform/StyleOOoTContext.cxx')
-rw-r--r-- | xmloff/source/transform/StyleOOoTContext.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/xmloff/source/transform/StyleOOoTContext.cxx b/xmloff/source/transform/StyleOOoTContext.cxx index 656d9050d156..ccf445adbe9a 100644 --- a/xmloff/source/transform/StyleOOoTContext.cxx +++ b/xmloff/source/transform/StyleOOoTContext.cxx @@ -978,19 +978,19 @@ void XMLPropertiesOOoTContext_Impl::StartElement( pProtectContext->AddAttribute( GetTransformer().GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_STYLE, GetXMLToken( XML_PROTECT ) ), aProtectAttrValue ); } - if( pIntervalMinorDivisorContext ) + if( !pIntervalMinorDivisorContext ) + return; + + if( fIntervalMinor != 0.0 ) { - if( fIntervalMinor != 0.0 ) - { - sal_Int32 nIntervalMinorDivisor = static_cast< sal_Int32 >( - ::rtl::math::round( fIntervalMajor / fIntervalMinor )); - - pIntervalMinorDivisorContext->AddAttribute( - GetTransformer().GetNamespaceMap().GetQNameByKey( - XML_NAMESPACE_CHART, - GetXMLToken( XML_INTERVAL_MINOR_DIVISOR )), - OUString::number( nIntervalMinorDivisor )); - } + sal_Int32 nIntervalMinorDivisor = static_cast< sal_Int32 >( + ::rtl::math::round( fIntervalMajor / fIntervalMinor )); + + pIntervalMinorDivisorContext->AddAttribute( + GetTransformer().GetNamespaceMap().GetQNameByKey( + XML_NAMESPACE_CHART, + GetXMLToken( XML_INTERVAL_MINOR_DIVISOR )), + OUString::number( nIntervalMinorDivisor )); } } |