diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-11 21:10:14 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-11 21:11:03 -0500 |
commit | 10a5404fd0fc2da42ba5b293363704af081ae308 (patch) | |
tree | 3d36120fc468fb96f84bc540f2445259026d6e72 /sc/source | |
parent | c36fb812f806105901b0f5d1bd0315bcc5022812 (diff) |
New test for pivot tables with named source ranges.
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index b0bbace516fa..d384cd99b471 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -2565,6 +2565,12 @@ void ScDPCollection::SheetCaches::removeCache(const ScRange& rRange) ScDPCollection::NameCaches::NameCaches(ScDocument* pDoc) : mpDoc(pDoc) {} +const ScDPCache* ScDPCollection::NameCaches::getCache(const OUString& rName) const +{ + CachesType::const_iterator itr = maCaches.find(rName); + return itr != maCaches.end() ? itr->second : NULL; +} + const ScDPCache* ScDPCollection::NameCaches::getCache(const OUString& rName, const ScRange& rRange) { CachesType::const_iterator itr = maCaches.find(rName); |