summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/data/ods/tdf118086.odsbin0 -> 17202 bytes
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx20
2 files changed, 20 insertions, 0 deletions
diff --git a/sc/qa/unit/data/ods/tdf118086.ods b/sc/qa/unit/data/ods/tdf118086.ods
new file mode 100644
index 000000000000..00e2d93f7122
--- /dev/null
+++ b/sc/qa/unit/data/ods/tdf118086.ods
Binary files differ
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 8c0b8df909b8..c85f8d2dbdc5 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -208,6 +208,7 @@ public:
void testOptimalHeightReset();
void testCustomNumFormatHybridCellODS();
void testTdf121040();
+ void testTdf118086();
void testTdf118624();
void testTdf124454();
@@ -401,6 +402,7 @@ public:
CPPUNIT_TEST(testOptimalHeightReset);
CPPUNIT_TEST(testCustomNumFormatHybridCellODS);
CPPUNIT_TEST(testTdf121040);
+ CPPUNIT_TEST(testTdf118086);
CPPUNIT_TEST(testTdf118624);
CPPUNIT_TEST(testTdf124454);
CPPUNIT_TEST(testPrintRangeODS);
@@ -3278,6 +3280,24 @@ void ScFiltersTest::testTdf121040()
xDocSh->DoClose();
}
+void ScFiltersTest::testTdf118086()
+{
+ ScDocShellRef xDocSh = loadDoc(u"tdf118086.", FORMAT_ODS);
+ CPPUNIT_ASSERT_MESSAGE("Failed to load tdf118086.ods", xDocSh.is());
+
+ ScDocument& rDoc = xDocSh->GetDocument();
+
+ CPPUNIT_ASSERT_EQUAL(sal_uInt16(477), rDoc.GetRowHeight(2, static_cast<SCTAB>(0), false));
+
+ // Without the fix in place, this test would have failed with
+ // - Expected: 256
+ // - Actual : 477
+ CPPUNIT_ASSERT_EQUAL(sal_uInt16(256), rDoc.GetRowHeight(2, static_cast<SCTAB>(1), false));
+ CPPUNIT_ASSERT_EQUAL(sal_uInt16(256), rDoc.GetRowHeight(2, static_cast<SCTAB>(2), false));
+
+ xDocSh->DoClose();
+}
+
void ScFiltersTest::testTdf118624()
{
ScDocShellRef xDocSh = loadDoc(u"tdf118624.", FORMAT_ODS);