summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/sectfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/sectfrm.cxx')
-rw-r--r--sw/source/core/layout/sectfrm.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index 0de0d2a5f296..7f738bbc3d5e 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -2715,20 +2715,20 @@ void SwSectionFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pN
default:
bClear = false;
}
- if ( bClear )
+ if ( !bClear )
+ return;
+
+ if ( pOldSet || pNewSet )
{
- if ( pOldSet || pNewSet )
- {
- if ( pOldSet )
- pOldSet->ClearItem( nWhich );
- if ( pNewSet )
- pNewSet->ClearItem( nWhich );
- }
- else
- {
- SwModify aMod;
- SwLayoutFrame::SwClientNotify(aMod, sw::LegacyModifyHint(pOld, pNew));
- }
+ if ( pOldSet )
+ pOldSet->ClearItem( nWhich );
+ if ( pNewSet )
+ pNewSet->ClearItem( nWhich );
+ }
+ else
+ {
+ SwModify aMod;
+ SwLayoutFrame::SwClientNotify(aMod, sw::LegacyModifyHint(pOld, pNew));
}
}