diff options
-rw-r--r-- | sw/source/core/doc/DocumentContentOperationsManager.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx index 05d527fedfd9..c73da6a98fc6 100644 --- a/sw/source/core/doc/DocumentContentOperationsManager.cxx +++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx @@ -3374,7 +3374,6 @@ void DocumentContentOperationsManager::CopyFlyInFlyImpl( aAnchor.SetAnchor( &newPos ); // Check recursion: copy content in its own frame, then don't copy it. - bool bMakeCpy = true; if( pDest == &m_rDoc ) { const SwFmtCntnt& rCntnt = (*it).GetFmt()->GetCntnt(); @@ -3384,16 +3383,14 @@ void DocumentContentOperationsManager::CopyFlyInFlyImpl( pSNd->GetIndex() < rStartIdx.GetIndex() && rStartIdx.GetIndex() < pSNd->EndOfSectionIndex() ) { - bMakeCpy = false; aSet.erase (it++); continue; } } // Copy the format and set the new anchor - if( bMakeCpy ) - aVecSwFrmFmt.push_back( pDest->getIDocumentLayoutAccess().CopyLayoutFmt( *(*it).GetFmt(), - aAnchor, false, true ) ); + aVecSwFrmFmt.push_back( pDest->getIDocumentLayoutAccess().CopyLayoutFmt( *(*it).GetFmt(), + aAnchor, false, true ) ); ++it; } |