diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-10-01 22:30:59 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-10-01 22:30:59 -0400 |
commit | 0cfa5a12cc75e95f26fb6d8b348045bf8ba9bdd1 (patch) | |
tree | 5a6f87bfd8c7e1972007f0882efd561d028c927e /sc/source/ui/docshell/dbdocimp.cxx | |
parent | 4e75e8379eed1c2c7ca1b97bab93dbda013bd55a (diff) |
Ported calc-perf-import-dbf-sc.diff from ooo-build
This speeds up import of dBase (dbf) files 4-5 times.
Diffstat (limited to 'sc/source/ui/docshell/dbdocimp.cxx')
-rw-r--r-- | sc/source/ui/docshell/dbdocimp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx index da5cd4dc9fc6..dee7438bc07f 100644 --- a/sc/source/ui/docshell/dbdocimp.cxx +++ b/sc/source/ui/docshell/dbdocimp.cxx @@ -268,7 +268,7 @@ BOOL ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, // ImportDoc - also used for Redo ScDocument* pImportDoc = new ScDocument( SCDOCMODE_UNDO ); pImportDoc->InitUndo( pDoc, nTab, nTab ); - ScColumn::bDoubleAlloc = TRUE; + ScColumn::DoubleAllocSwitch aAllocSwitch(true); // // get data from database into import document @@ -460,7 +460,6 @@ BOOL ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, DBG_ERROR("Unexpected exception in database"); } - ScColumn::bDoubleAlloc = FALSE; pImportDoc->DoColResize( nTab, rParam.nCol1,nEndCol, 0 ); // |