summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/docnode/ndtbl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index cda90ba7a1e7..242f2859f809 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -2971,6 +2971,7 @@ sal_Bool SwCollectTblLineBoxes::Resize( sal_uInt16 nOffset, sal_uInt16 nOldWidth
if( aPosArr.size() )
{
for( n = 0; n < aPosArr.size(); ++n )
+ {
if( aPosArr[ n ] == nOffset )
break;
else if( aPosArr[ n ] > nOffset )
@@ -2979,8 +2980,9 @@ sal_Bool SwCollectTblLineBoxes::Resize( sal_uInt16 nOffset, sal_uInt16 nOldWidth
--n;
break;
}
+ }
- aPosArr.clear();
+ aPosArr.erase(aPosArr.begin(), aPosArr.begin()+n);
aBoxes.Remove( 0, n );
// dann die Positionen der neuen Size anpassen