diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-04 16:58:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-04 16:58:21 +0000 |
commit | 5e22a2725512f7c030f629aff232036e992db1ed (patch) | |
tree | 706b701beed7e1f51f78a7e60e750ccf2f93cdf0 | |
parent | e1ddda43b338168b9feb88d9fb70a14243ed6e19 (diff) |
make this more robust
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 2 |
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; |