diff options
Diffstat (limited to 'sw/source/core/doc/number.cxx')
-rw-r--r-- | sw/source/core/doc/number.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx index e4152e5b10ba..f3372869c76e 100644 --- a/sw/source/core/doc/number.cxx +++ b/sw/source/core/doc/number.cxx @@ -619,9 +619,16 @@ void SwNumRule::Set( sal_uInt16 i, const SwNumFormat* pNumFormat ) } } else if( !pNumFormat ) - delete pOld, maFormats[ i ] = nullptr, mbInvalidRuleFlag = true; + { + delete pOld; + maFormats[ i ] = nullptr; + mbInvalidRuleFlag = true; + } else if( *pOld != *pNumFormat ) - *pOld = *pNumFormat, mbInvalidRuleFlag = true; + { + *pOld = *pNumFormat; + mbInvalidRuleFlag = true; + } } OUString SwNumRule::MakeNumString( const SwNodeNum& rNum, bool bInclStrings, |