summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/table/tablerow.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/table/tablerow.cxx b/svx/source/table/tablerow.cxx
index 03208ab10889..ab164ddc48f4 100644
--- a/svx/source/table/tablerow.cxx
+++ b/svx/source/table/tablerow.cxx
@@ -141,13 +141,13 @@ void TableRow::removeColumns( sal_Int32 nIndex, sal_Int32 nCount )
{
CellVector::iterator aBegin( maCells.begin() );
while( nIndex-- && (aBegin != maCells.end()) )
- aBegin++;
+ ++aBegin;
if( nCount > 1 )
{
CellVector::iterator aEnd( aBegin );
while( nCount-- && (aEnd != maCells.end()) )
- aEnd++;
+ ++aEnd;
maCells.erase( aBegin, aEnd );
}
else