diff options
-rw-r--r-- | sw/source/core/doc/gctable.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/source/core/doc/gctable.cxx b/sw/source/core/doc/gctable.cxx index 30937cadd541..2c207ede9364 100644 --- a/sw/source/core/doc/gctable.cxx +++ b/sw/source/core/doc/gctable.cxx @@ -441,9 +441,16 @@ static bool lcl_MergeGCLine(SwTableLine* pLn, GCLinePara* pGCPara) } // ATTENTION: The number of boxes can change! - for( SwTableBoxes::size_type nLen = 0; nLen < pLn->GetTabBoxes().size(); ++nLen ) + SwTableBoxes::size_type nLen = 0; + while (nLen < pLn->GetTabBoxes().size()) + { if( !lcl_MergeGCBox( pLn->GetTabBoxes()[nLen], pGCPara )) + { --nLen; + continue; + } + ++nLen; + } } return true; } |