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

fix col limit crash on export of ooo103315-1.ods to xls

Change-Id: Ic68ddc56d9cf9dd410c1f073ba83bfeea8220bf0
üst 6a09822d
......@@ -1367,7 +1367,8 @@ bool XclExpXct::BuildCrnList( XclExpCrnList& rCrnRecs )
for( SCROW nScRow = nScRow1; bValid && (nScRow <= nScRow2); ++nScRow )
{
::std::pair< SCCOL, SCCOL > aColRange = mxCacheTable->getColRange( nScRow );
for( SCCOL nScCol = aColRange.first; bValid && (nScCol < aColRange.second); ++nScCol )
const SCCOL nScEnd = ::std::min( aColRange.second, MAXCOLCOUNT );
for( SCCOL nScCol = aColRange.first; bValid && (nScCol < nScEnd); ++nScCol )
{
if( maUsedCells.IsCellMarked( nScCol, nScRow, true ) )
{
......
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