summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/dbdocfun.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-23 22:15:39 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-23 22:27:42 -0400
commitd9cc468b307d1f1e18d9561c4dbaf0a744ababa9 (patch)
treeb23676476289243797eb1b75aa3eccecada1faf6 /sc/source/ui/docshell/dbdocfun.cxx
parent16168d7d589d22b1efd2a666d08d96233783457f (diff)
Let's just centrally reload group data in DataPilotUpdate()...
It's a no-op when there is no group dimensions anyways.
Diffstat (limited to 'sc/source/ui/docshell/dbdocfun.cxx')
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 7e392d57f475..5bc66c9017f2 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1327,6 +1327,7 @@ bool ScDBDocFunc::DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewOb
if ( pNewObj == pOldObj && pDestObj->IsImportData() )
pDestObj->ClearTableData();
+ pDestObj->ReloadGroupTableData();
pDestObj->InvalidateData(); // before getting the new output area
// make sure the table has a name (not set by dialog)
@@ -1474,9 +1475,6 @@ sal_uLong ScDBDocFunc::RefreshPivotTables(ScDPObject* pDPObj, bool bApi)
for (; it != itEnd; ++it)
{
ScDPObject* pObj = *it;
- if (bHasGroups)
- // Re-build table data for each pivot table when the original contains group fields.
- pObj->ReloadGroupTableData();
// This action is intentionally not undoable since it modifies cache.
DataPilotUpdate(pObj, pObj, false, bApi);
@@ -1515,7 +1513,6 @@ void ScDBDocFunc::RefreshPivotTableGroups(ScDPObject* pDPObj)
pSaveData->SetDimensionData(pDimData);
}
- pObj->ReloadGroupTableData();
// This action is intentionally not undoable since it modifies cache.
DataPilotUpdate(pObj, pObj, false, false);
}