summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/wsfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/wsfrm.cxx')
-rw-r--r--sw/source/core/layout/wsfrm.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx
index 10434529b67e..fccf94925187 100644
--- a/sw/source/core/layout/wsfrm.cxx
+++ b/sw/source/core/layout/wsfrm.cxx
@@ -2538,20 +2538,20 @@ void SwContentFrame::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;
- SwFrame::SwClientNotify(aMod, sw::LegacyModifyHint(pOld, pNew));
- }
+ if ( pOldSet )
+ pOldSet->ClearItem( nWhich );
+ if ( pNewSet )
+ pNewSet->ClearItem( nWhich );
+ }
+ else
+ {
+ SwModify aMod;
+ SwFrame::SwClientNotify(aMod, sw::LegacyModifyHint(pOld, pNew));
}
}