Kaydet (Commit) 66ea6d98 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

only export the supported number of rows/columns, fdo#49582

Change-Id: I51fc4d0a6d9cc09c82268351ad069467bf8acc31
üst ee7404c8
...@@ -2210,6 +2210,12 @@ XclExpCellTable::XclExpCellTable( const XclExpRoot& rRoot ) : ...@@ -2210,6 +2210,12 @@ XclExpCellTable::XclExpCellTable( const XclExpRoot& rRoot ) :
SCROW nLastUsedScRow; SCROW nLastUsedScRow;
rDoc.GetFormattedAndUsedArea( nScTab, nLastUsedScCol, nLastUsedScRow ); rDoc.GetFormattedAndUsedArea( nScTab, nLastUsedScCol, nLastUsedScRow );
if(nLastUsedScCol > nMaxScCol)
nLastUsedScCol = nMaxScCol;
if(nLastUsedScRow > nMaxScRow)
nLastUsedScRow = nMaxScRow;
ScRange aUsedRange( 0, 0, nScTab, nLastUsedScCol, nLastUsedScRow, nScTab ); ScRange aUsedRange( 0, 0, nScTab, nLastUsedScCol, nLastUsedScRow, nScTab );
GetAddressConverter().ValidateRange( aUsedRange, true ); GetAddressConverter().ValidateRange( aUsedRange, true );
nLastUsedScCol = aUsedRange.aEnd.Col(); nLastUsedScCol = aUsedRange.aEnd.Col();
......
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