summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dpsdbtab.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-08 15:49:31 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-09 11:13:35 -0500
commit593f6ac1064184f1faee60155c412b964f6f86a1 (patch)
tree1398b81fd493356ad21ca744cd325f4778c66bfc /sc/source/core/data/dpsdbtab.cxx
parent32b61ed8931acd97e488bc73486244c385a3a974 (diff)
Added hook to create group field data at cache creation time.
This is to avoid group data to be added multiple times in case of multiple pivot tables referencing the same pivot cache.
Diffstat (limited to 'sc/source/core/data/dpsdbtab.cxx')
-rw-r--r--sc/source/core/data/dpsdbtab.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/dpsdbtab.cxx b/sc/source/core/data/dpsdbtab.cxx
index a4e732bc9ea1..b085473b2408 100644
--- a/sc/source/core/data/dpsdbtab.cxx
+++ b/sc/source/core/data/dpsdbtab.cxx
@@ -63,7 +63,7 @@ sal_Int32 ScImportSourceDesc::GetCommandType() const
return nSdbType;
}
-const ScDPCache* ScImportSourceDesc::CreateCache() const
+const ScDPCache* ScImportSourceDesc::CreateCache(const ScDPDimensionSaveData* pDimData) const
{
if (!mpDoc)
return NULL;
@@ -73,7 +73,7 @@ const ScDPCache* ScImportSourceDesc::CreateCache() const
return NULL;
ScDPCollection::DBCaches& rCaches = mpDoc->GetDPCollection()->GetDBCaches();
- return rCaches.getCache(nSdbType, aDBName, aObject);
+ return rCaches.getCache(nSdbType, aDBName, aObject, pDimData);
}
ScDatabaseDPData::ScDatabaseDPData(