summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-04 16:58:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-04 16:58:21 +0000
commitaebced1279d1e2fd8c0c2e9209e8fdaa106b6e56 (patch)
treeadc3430827ab0e5dd793c70ed2e52996dd38910e
parente118a5d32bc8a224395928a4e7532e97797188ee (diff)
make this more robust
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 8d2e476d4a92..736eaa528cd3 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -3367,7 +3367,7 @@ USHORT WW8TabDesc::GetLogicalWWCol() const // returns number of col as INDICATED
USHORT nCol = 0;
if( pActBand && pActBand->pTCs)
{
- for( USHORT iCol = 1; iCol <= nAktCol; ++iCol )
+ for( USHORT iCol = 1; iCol <= nAktCol && iCol <= pActBand->nWwCols; ++iCol )
{
if( !pActBand->pTCs[ iCol-1 ].bMerged )
++nCol;