Kaydet (Commit) aebced12 authored tarafından Caolán McNamara's avatar Caolán McNamara

make this more robust

üst e118a5d3
...@@ -3367,7 +3367,7 @@ USHORT WW8TabDesc::GetLogicalWWCol() const // returns number of col as INDICATED ...@@ -3367,7 +3367,7 @@ USHORT WW8TabDesc::GetLogicalWWCol() const // returns number of col as INDICATED
USHORT nCol = 0; USHORT nCol = 0;
if( pActBand && pActBand->pTCs) 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 ) if( !pActBand->pTCs[ iCol-1 ].bMerged )
++nCol; ++nCol;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment