diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-06-25 12:29:02 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-06-25 12:37:08 +0200 |
commit | 462f94c2b93a65e5388e2935baaeeac165679a14 (patch) | |
tree | a45df80496c0979af24fe130423b41ccb0917328 | |
parent | 4a38cb3bfc1a30d37cbb3ae51989cf747e54eb66 (diff) |
only export the supported number of rows/columns, fdo#49582
Change-Id: I51fc4d0a6d9cc09c82268351ad069467bf8acc31
-rw-r--r-- | sc/source/filter/excel/xetable.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index 5656b716199d..150c730f5169 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -2210,6 +2210,12 @@ XclExpCellTable::XclExpCellTable( const XclExpRoot& rRoot ) : SCROW nLastUsedScRow; rDoc.GetFormattedAndUsedArea( nScTab, nLastUsedScCol, nLastUsedScRow ); + if(nLastUsedScCol > nMaxScCol) + nLastUsedScCol = nMaxScCol; + + if(nLastUsedScRow > nMaxScRow) + nLastUsedScRow = nMaxScRow; + ScRange aUsedRange( 0, 0, nScTab, nLastUsedScCol, nLastUsedScRow, nScTab ); GetAddressConverter().ValidateRange( aUsedRange, true ); nLastUsedScCol = aUsedRange.aEnd.Col(); |