sc/source/filter/excel/xetable.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 66ea6d9801ea8e214f39a70251e5ccc5f47c315a
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Mon Jun 25 12:29:02 2012 +0200

    only export the supported number of rows/columns, fdo#49582
    
    Change-Id: I51fc4d0a6d9cc09c82268351ad069467bf8acc31

diff --git a/sc/source/filter/excel/xetable.cxx 
b/sc/source/filter/excel/xetable.cxx
index 5656b71..150c730 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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to