summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-03-31 09:43:01 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-31 09:37:04 +0200
commit5c9ba1f47d00ed10960b59928befd68f6c020b15 (patch)
tree576584f9f0bbee8e427eeb2ea5a43ef9f3da534a
parenta6c6f35ccc78e74cfa76397d649c1b6fc4baad29 (diff)
Fix the test in Windows RDP sessions
Without the fix, this is failing there with Test name: VclComplexTextTest::testArabic equality assertion failed - Expected: 71x14@(0,1) - Actual : 70x14@(1,1) See also commit 6f995da5a652d993ab253b3363188cd18e289728, that tried to address the same issue (it was reverted later in commit 536666539ce999cfe97378671a7186e38c32bdfc). Change-Id: I708c22deb5f1f8a59e2e22cba14b298acaa81d5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113396 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--vcl/qa/cppunit/complextext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index dae468baadc7..5e830ba35439 100644
--- a/vcl/qa/cppunit/complextext.cxx
+++ b/vcl/qa/cppunit/complextext.cxx
@@ -86,7 +86,7 @@ void VclComplexTextTest::testArabic()
CPPUNIT_ASSERT_EQUAL(tools::Long(14), pOutDev->GetTextHeight());
// exact bounding rectangle, not essentially the same as text width/height
- tools::Rectangle aBoundRect, aTestRect( 0, 1, 71, 15 );
+ tools::Rectangle aBoundRect, aTestRect(isWindowsRDP() ? 1 : 0, 1, 71, 15);
pOutDev->GetTextBoundRect(aBoundRect, aOneTwoThree);
CPPUNIT_ASSERT_EQUAL(aTestRect, aBoundRect);