summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-10-26 13:02:25 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-11-16 16:48:48 +0100
commitbed58e399aaf1ee0292dc64808948780199e730a (patch)
tree027f5a294551754f4033393c6abfbdcb7a158047 /sw
parent240ca5feab4d119bc68eb58d1fca63ccb78b879b (diff)
Clarify flow by avoiding assignment in if condition
Change-Id: Ifed65f41ab2375d702bf0c4299c65d1e3d78a7f0
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/frmtool.cxx23
1 files changed, 13 insertions, 10 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index 1c6fba9b178e..e1be7def03a3 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -1175,17 +1175,20 @@ void AppendAllObjs( const SwFrmFmts *pTbl, const SwFrm* pSib )
//I don't want here.
bRemove = true;
}
- else if ( false == (bRemove = ::lcl_ObjConnected( pFmt, pSib )) ||
- ::lcl_InHeaderOrFooter( *pFmt ) )
- {
- // OD 23.06.2003 #108784# - correction: for objects in header
- // or footer create frames, in spite of the fact that an connected
- // objects already exists.
- //Call for Flys and DrawObjs only a MakeFrms if nor
- //no dependent exists, otherwise, or if the MakeDrms creates no
- //dependents, remove.
- pFmt->MakeFrms();
+ else
+ {
bRemove = ::lcl_ObjConnected( pFmt, pSib );
+ if ( !bRemove || ::lcl_InHeaderOrFooter( *pFmt ) )
+ {
+ // OD 23.06.2003 #108784# - correction: for objects in header
+ // or footer create frames, in spite of the fact that an connected
+ // objects already exists.
+ //Call for Flys and DrawObjs only a MakeFrms if nor
+ //no dependent exists, otherwise, or if the MakeDrms creates no
+ //dependents, remove.
+ pFmt->MakeFrms();
+ bRemove = ::lcl_ObjConnected( pFmt, pSib );
+ }
}
if ( bRemove )
{