diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-12 15:22:32 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-12 21:56:49 -0500 |
commit | 2232b0c303ca4776a9df762d802b8f74b9d78c93 (patch) | |
tree | 61a86f4355d796c3b4d3a7274c0400b0108d0dbd /sc/qa/unit/ucalc.cxx | |
parent | 33024ee9d07f4448b2ecdd6f27e0344072b2c0ea (diff) |
fdo#43077: Now, refreshing a table should refresh all linked tables.
For efficiency reasons. Otherwise, refreshing n tables individually
would require reloading the same data cache n times.
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index b9e3013f2133..a10cee99598d 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -1363,7 +1363,8 @@ void Test::testDataPilot() // This time clear the cache to refresh the data from the source range. CPPUNIT_ASSERT_MESSAGE("This datapilot should be based on sheet data.", pDPObj2->IsSheetData()); - sal_uLong nErrId = pDPs->ClearCache(pDPObj2); + std::set<ScDPObject*> aRefs; + sal_uLong nErrId = pDPs->ReloadCache(pDPObj2, aRefs); CPPUNIT_ASSERT_MESSAGE("Cache removal failed.", nErrId == 0); pDPObj2->ClearSource(); pDPObj2->Output(aOutRange.aStart); |