summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-22 22:38:56 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-22 22:38:56 -0400
commit76e533a5c6a54ffbbb98880d966e5b060e9626b6 (patch)
tree12b35b86845b39a71e53e8a49c39795a44fb7335 /sc
parent1d8b583b0676f9c9eed8efd092445908ebea26d9 (diff)
More bug fixes related to grouped dimension handling.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dpobject.cxx3
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx2
2 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 2f0e51079210..9e7af6d7e01d 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -564,6 +564,9 @@ void ScDPObject::ReloadGroupTableData()
// No dimension data. Most likey it doesn't have any group dimensions.
return;
+ if (!mpTableData)
+ return;
+
ScDPGroupTableData* pData = dynamic_cast<ScDPGroupTableData*>(mpTableData.get());
if (pData)
{
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index afb3513c3b2f..6339e5f1ce46 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1328,7 +1328,7 @@ bool ScDBDocFunc::DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewOb
pDestObj->ClearTableData();
if (pDestObj->HasGroups())
- pDestObj->ClearTableData();
+ pDestObj->ReloadGroupTableData();
pDestObj->InvalidateData(); // before getting the new output area