summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/subsequent_export-test.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index b0011b33ac86..90da87cb7602 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -1232,11 +1232,14 @@ void ScExportTest::testSharedFormulaExportXLSX()
ScDocShellRef xDocSh = loadDoc("shared-formula/3d-reference.", XLSX);
CPPUNIT_ASSERT_MESSAGE("Failed to load file.", xDocSh.Is());
ScDocument* pDoc = xDocSh->GetDocument();
- pDoc->CalcAll(); // Recalculate to flush all cached results.
bool bRes = aTest.checkContent(pDoc);
CPPUNIT_ASSERT_MESSAGE("Content check on the initial document failed.", bRes);
+ pDoc->CalcAll(); // Recalculate to flush all cached results.
+ bRes = aTest.checkContent(pDoc);
+ CPPUNIT_ASSERT_MESSAGE("Content check on the initial recalculated document failed.", bRes);
+
// Save and reload, and check the content again.
ScDocShellRef xDocSh2 = saveAndReload(xDocSh, XLSX);
xDocSh->DoClose();