diff options
-rw-r--r-- | sc/qa/unit/data/ods/tdf132278.ods | bin | 0 -> 35018 bytes | |||
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sc/qa/unit/data/ods/tdf132278.ods b/sc/qa/unit/data/ods/tdf132278.ods Binary files differnew file mode 100644 index 000000000000..256ab18d62b1 --- /dev/null +++ b/sc/qa/unit/data/ods/tdf132278.ods 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 |