summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2011-11-24 23:01:47 +0100
committerEike Rathke <erack@redhat.com>2011-11-25 01:01:16 +0100
commit36018b12c460dd0e537f2a1aff8cb78a356cafbd (patch)
tree2e42e284a2ed4d1101bb96553e03081fdd6c0653 /sc
parentd0cd63da64948d9a3ad885b696e44d5c5fcfd1ab (diff)
calc68: #i117728# allocate row/column outline buffers according to BIFF sheet size, not Calc sheet size
# Original author: Daniel Rentz [dr] <daniel.rentz@oracle.com> * found as LGPLv3-only fix at svn rev 1166947 (http://svn.apache.org/viewvc?view=revision&revision=1166947)
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/impop.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index dec262a576bf..f30a4cb8f39d 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -1311,8 +1311,8 @@ void ImportExcel::PostDocLoad( void )
XclImpOutlineDataBuffer::XclImpOutlineDataBuffer( const XclImpRoot& rRoot, SCTAB nScTab ) :
XclImpRoot( rRoot ),
- mxColOutlineBuff( new XclImpOutlineBuffer( MAXCOLCOUNT ) ),
- mxRowOutlineBuff( new XclImpOutlineBuffer( MAXROWCOUNT ) ),
+ mxColOutlineBuff( new XclImpOutlineBuffer( rRoot.GetXclMaxPos().Col() + 1 ) ),
+ mxRowOutlineBuff( new XclImpOutlineBuffer( rRoot.GetXclMaxPos().Row() + 1 ) ),
mxColRowBuff( new XclImpColRowSettings( rRoot ) ),
mnScTab( nScTab )
{