Lines 2358-2363
Link Here
|
2358 |
// range for cell iterator |
2358 |
// range for cell iterator |
2359 |
SCCOL nLastIterScCol = nMaxScCol; |
2359 |
SCCOL nLastIterScCol = nMaxScCol; |
2360 |
SCROW nLastIterScRow = ulimit_cast< SCROW >( nLastUsedScRow + 128, nMaxScRow ); |
2360 |
SCROW nLastIterScRow = ulimit_cast< SCROW >( nLastUsedScRow + 128, nMaxScRow ); |
|
|
2361 |
// modified for 119707 by zhanglu |
2362 |
SCCOL rEndColAtt = 0; |
2363 |
SCROW rEndRowAtt = 0; |
2364 |
rDoc.GetLastAttrCell( nScTab, rEndColAtt,rEndRowAtt ); // To get the real last cell's row number, which has visual data or attribute. |
2365 |
if( rEndRowAtt > nLastIterScRow ) |
2366 |
nLastIterScRow = rEndRowAtt; |
2367 |
|
2368 |
if (nLastIterScRow > nMaxScRow) |
2369 |
nLastIterScRow = nMaxScRow; |
2370 |
// modified for 119707 end |
2361 |
ScUsedAreaIterator aIt( &rDoc, nScTab, 0, 0, nLastIterScCol, nLastIterScRow ); |
2371 |
ScUsedAreaIterator aIt( &rDoc, nScTab, 0, 0, nLastIterScCol, nLastIterScRow ); |
2362 |
|
2372 |
|
2363 |
// activate the correct segment and sub segment at the progress bar |
2373 |
// activate the correct segment and sub segment at the progress bar |