Kaydet (Commit) 88979ef6 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

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
üst f4ed9a5a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment