diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-09-08 15:00:57 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-09-08 16:23:28 +0200 |
commit | 8ed8b54a94dd812d59e7531504248c99db6be194 (patch) | |
tree | e1dafac2976b45296ce5abaf9daa328391f7a1d4 /sc | |
parent | c5bed7889fe391e0e408248c2db042b5e489bcda (diff) |
Fix CppunitTest_sc_subsequent_filters_test2 on non-default DPI
Change-Id: I940c3213dda02a73924a9f8dc6500d7ecc38ba6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139674
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/subsequent_filters_test2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/qa/unit/subsequent_filters_test2.cxx b/sc/qa/unit/subsequent_filters_test2.cxx index 782b3a2c497e..1dd93e55ad95 100644 --- a/sc/qa/unit/subsequent_filters_test2.cxx +++ b/sc/qa/unit/subsequent_filters_test2.cxx @@ -464,7 +464,8 @@ void ScFiltersTest2::testTdf118086() ScDocument& rDoc = xDocSh->GetDocument(); - CPPUNIT_ASSERT_EQUAL(sal_uInt16(477), rDoc.GetRowHeight(2, static_cast<SCTAB>(0), false)); + // Depending on DPI, this might be 477 or 480 + CPPUNIT_ASSERT_DOUBLES_EQUAL(477, rDoc.GetRowHeight(2, static_cast<SCTAB>(0), false), 5); // Without the fix in place, this test would have failed with // - Expected: 256 |