sc/qa/unit/subsequent_filters_test2.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 8ed8b54a94dd812d59e7531504248c99db6be194
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Sep 8 15:00:57 2022 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Thu Sep 8 16:23:28 2022 +0200

    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.kagan...@collabora.com>

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

Reply via email to