summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/tokstack.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2009-12-02 17:35:02 -0500
committerKohei Yoshida <kyoshida@novell.com>2009-12-02 17:35:02 -0500
commit3678f33c2aff09260f5bf9c7fd4ae2ba272e711c (patch)
tree0a20b4fcd7e68f9230323a7cc587f7335d836136 /sc/source/filter/excel/tokstack.cxx
parent70a30bdb2f4459ec5b7fea546433f274f69c5f47 (diff)
Defer defining of matrix size until the data are actually read.
Diffstat (limited to 'sc/source/filter/excel/tokstack.cxx')
-rw-r--r--sc/source/filter/excel/tokstack.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/filter/excel/tokstack.cxx b/sc/source/filter/excel/tokstack.cxx
index 34c2b9284fed..fe7c3a9d6042 100644
--- a/sc/source/filter/excel/tokstack.cxx
+++ b/sc/source/filter/excel/tokstack.cxx
@@ -740,7 +740,7 @@ const TokenId TokenPool::StoreNlf( const ScSingleRefData& rTr )
return ( const TokenId ) nElementAkt;
}
-const TokenId TokenPool::StoreMatrix( SCSIZE nC, SCSIZE nR )
+const TokenId TokenPool::StoreMatrix()
{
ScMatrix* pM;
@@ -753,8 +753,7 @@ const TokenId TokenPool::StoreMatrix( SCSIZE nC, SCSIZE nR )
pElement[ nElementAkt ] = nP_MatrixAkt;
pType[ nElementAkt ] = T_Matrix;
- pM = new ScMatrix( nC, nR );
- pM->FillDouble( 0., 0,0, nC-1, nR-1 );
+ pM = new ScMatrix( 0, 0 );
pM->IncRef( );
ppP_Matrix[ nP_MatrixAkt ] = pM;