diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-22 14:55:34 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-22 14:58:39 -0400 |
commit | 88979ef6ffe7921200311513d6601f9c5d582a42 (patch) | |
tree | ce82ed9370963b930b39535e12e6b25687fef833 /sc | |
parent | f4ed9a5adbea3de88870ff4f5cb202bd606e0746 (diff) |
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
Diffstat (limited to 'sc')
-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 ffcc59e0e7ee..c5ac76078dde 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 |