sc/qa/unit/data/ods/tdf132278.ods |binary sc/qa/unit/subsequent_filters-test.cxx | 14 ++++++++++++++ 2 files changed, 14 insertions(+)
New commits: commit e34a1463e0cf236ca0612b1e0850f89964e4c066 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Apr 23 11:26:29 2020 +0200 Commit: Xisco FaulĂ <xiscofa...@libreoffice.org> CommitDate: Thu Apr 23 17:40:39 2020 +0200 tdf#132278: sc: Add unittest Change-Id: Iaba8917fb18e86c68701b13b0ff26246c3cc8986 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92746 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ <xiscofa...@libreoffice.org> diff --git a/sc/qa/unit/data/ods/tdf132278.ods b/sc/qa/unit/data/ods/tdf132278.ods new file mode 100644 index 000000000000..256ab18d62b1 Binary files /dev/null and b/sc/qa/unit/data/ods/tdf132278.ods differ diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index ac4de0827b5c..7d8799d83a1c 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -227,6 +227,7 @@ public: void testTdf100709XLSX(); void testTdf97598XLSX(); void testTdf110440XLSX(); + void testTdf132278(); void testTdf130959(); void testTdf131380(); void testTdf111974XLSM(); @@ -373,6 +374,7 @@ public: CPPUNIT_TEST(testTdf100709XLSX); CPPUNIT_TEST(testTdf97598XLSX); CPPUNIT_TEST(testTdf110440XLSX); + CPPUNIT_TEST(testTdf132278); CPPUNIT_TEST(testTdf130959); CPPUNIT_TEST(testTdf131380); CPPUNIT_TEST(testTdf111974XLSM); @@ -3544,6 +3546,18 @@ void ScFiltersTest::testTdf110440XLSX() xDocSh->DoClose(); } +void ScFiltersTest::testTdf132278() +{ + // Would crash without the fix on loading + ScDocShellRef xDocSh = loadDoc("tdf132278.", FORMAT_ODS); + CPPUNIT_ASSERT_MESSAGE("Failed to open doc", xDocSh.is()); + + ScDocument& rDoc = xDocSh->GetDocument(); + rDoc.CalcAll(); // perform hard re-calculation. + + xDocSh->DoClose(); +} + void ScFiltersTest::testTdf130959() { // Would crash without the fix on loading _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits