expand complex cascading conditional operator, step 4
Change-Id: Iaef321f8f9afe436a77a15cb48b5b93003374b47
Reviewed-on: https://gerrit.libreoffice.org/13011
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index b2c9a82..2539bf7 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -3204,10 +3204,15 @@ void DocumentContentOperationsManager::CopyFlyInFlyImpl(
bool bAtCntnt = (pAnchor->GetAnchorId() == FLY_AT_PARA);
if ( !pAPos )
continue;
if ( !bAtCntnt
&& pAnchor->GetAnchorId() != FLY_AT_FLY
&& pAnchor->GetAnchorId() != FLY_AT_CHAR)
continue;
switch ( pAnchor->GetAnchorId() )
{
case FLY_AT_FLY:
case FLY_AT_CHAR:
case FLY_AT_PARA:
break;
default:
continue;
}
if ( bCopyFlyAtFly && FLY_AT_FLY == pAnchor->GetAnchorId() )
{
if( rRg.aStart > pAPos->nNode.GetIndex() + 1 )