diff options
Diffstat (limited to 'sw/source/core/undo/undel.cxx')
-rw-r--r-- | sw/source/core/undo/undel.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sw/source/core/undo/undel.cxx b/sw/source/core/undo/undel.cxx index f979890d3b9b..1e4cb8e7fcd9 100644 --- a/sw/source/core/undo/undel.cxx +++ b/sw/source/core/undo/undel.cxx @@ -54,18 +54,15 @@ */ static void lcl_MakeAutoFrames( const SwFrameFormats& rSpzArr, sal_uLong nMovedIndex ) { - if( !rSpzArr.empty() ) + for( size_t n = 0; n < rSpzArr.size(); ++n ) { - for( size_t n = 0; n < rSpzArr.size(); ++n ) + SwFrameFormat * pFormat = rSpzArr[n]; + const SwFormatAnchor* pAnchor = &pFormat->GetAnchor(); + if (pAnchor->GetAnchorId() == RndStdIds::FLY_AT_CHAR) { - SwFrameFormat * pFormat = rSpzArr[n]; - const SwFormatAnchor* pAnchor = &pFormat->GetAnchor(); - if (pAnchor->GetAnchorId() == RndStdIds::FLY_AT_CHAR) - { - const SwPosition* pAPos = pAnchor->GetContentAnchor(); - if( pAPos && nMovedIndex == pAPos->nNode.GetIndex() ) - pFormat->MakeFrames(); - } + const SwPosition* pAPos = pAnchor->GetContentAnchor(); + if( pAPos && nMovedIndex == pAPos->nNode.GetIndex() ) + pFormat->MakeFrames(); } } } |