| author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-22 18:55:34 (GMT) |
|---|---|---|
| committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-22 18:58:39 (GMT) |
| commit | 88979ef6ffe7921200311513d6601f9c5d582a42 (patch) (side-by-side diff) | |
| tree | ce82ed9370963b930b39535e12e6b25687fef833 | |
| parent | f4ed9a5adbea3de88870ff4f5cb202bd606e0746 (diff) | |
| download | core-88979ef6ffe7921200311513d6601f9c5d582a42.zip core-88979ef6ffe7921200311513d6601f9c5d582a42.tar.gz | |
Don't clear the database data cache here.
This would result in the pivot cache being refreshed twice. This block
of code was a leftover from the previous, non-cached version of pivot
table, and this logic no longer applies today.
In today's pivot table code, the cache gets refreshed first, then the
table gets refreshed afterward. We should never clear the cache data
during table refresh.
Change-Id: Ida6fa1805463facf842cb9ea94f4c1afab716595
| -rw-r--r-- | sc/source/ui/docshell/dbdocfun.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index ffcc59e..c5ac760 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -1324,12 +1324,6 @@ bool ScDBDocFunc::DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewOb } if ( pDestObj ) { - // create new database connection for "refresh" - // (and re-read column entry collections) - // so all changes take effect - if ( pNewObj == pOldObj && pDestObj->IsImportData() ) - pDestObj->ClearTableData(); - pDestObj->ReloadGroupTableData(); pDestObj->InvalidateData(); // before getting the new output area |
