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
commit5e22a2725512f7c030f629aff232036e992db1ed (patch)
tree706b701beed7e1f51f78a7e60e750ccf2f93cdf0
parente1ddda43b338168b9feb88d9fb70a14243ed6e19 (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 e023656209..ae11ff5fba 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;