sc/qa/unit/data/ods/tdf122643.ods |binary sc/qa/unit/subsequent_filters-test.cxx | 14 ++++++++++++++ 2 files changed, 14 insertions(+)
New commits: commit 09192bc178f7f7b21ef63508f516f52790f3307d Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Jan 21 21:30:44 2021 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Jan 21 22:52:25 2021 +0100 tdf#122643: sc_subsequent_filters: Add unittest Change-Id: I89aed7ffbe40ddda19baff569b08580f1e4f118d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109770 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/qa/unit/data/ods/tdf122643.ods b/sc/qa/unit/data/ods/tdf122643.ods new file mode 100644 index 000000000000..7c1d5485531e Binary files /dev/null and b/sc/qa/unit/data/ods/tdf122643.ods differ diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index dea5fa845d80..6635feb5e10b 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -254,6 +254,7 @@ public: void testTdf100709XLSX(); void testTdf97598XLSX(); void testTdf110440XLSX(); + void testTdf122643(); void testTdf132278(); void testTdf130959(); void testTdf129410(); @@ -438,6 +439,7 @@ public: CPPUNIT_TEST(testTdf100709XLSX); CPPUNIT_TEST(testTdf97598XLSX); CPPUNIT_TEST(testTdf110440XLSX); + CPPUNIT_TEST(testTdf122643); CPPUNIT_TEST(testTdf132278); CPPUNIT_TEST(testTdf130959); CPPUNIT_TEST(testTdf129410); @@ -3842,6 +3844,18 @@ void ScFiltersTest::testTdf110440XLSX() xDocSh->DoClose(); } +void ScFiltersTest::testTdf122643() +{ + // Would crash without the fix on loading + ScDocShellRef xDocSh = loadDoc(u"tdf122643.", 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::testTdf132278() { // Would crash without the fix on loading _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits