sw/qa/extras/rtfexport/rtfexport5.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 7b3a681a867eeb2d68abd4ce33b07cabfff224ef Author: Baran Aytas <barannay...@gmail.com> AuthorDate: Mon Sep 6 00:17:42 2021 +0300 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Wed Sep 8 17:02:44 2021 +0200 tdf#141908: replace usage of sal_Int32 with colors Change-Id: I536e2c8d15db7c4973525ffc1e0abfb211228751 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121703 Tested-by: Jenkins Reviewed-by: Hossein <hoss...@libreoffice.org> diff --git a/sw/qa/extras/rtfexport/rtfexport5.cxx b/sw/qa/extras/rtfexport/rtfexport5.cxx index ad392be7fb75..44b969c9a6ff 100644 --- a/sw/qa/extras/rtfexport/rtfexport5.cxx +++ b/sw/qa/extras/rtfexport/rtfexport5.cxx @@ -392,14 +392,14 @@ DECLARE_RTFEXPORT_TEST(testNestedTable, "rhbz1065629.rtf") table::BorderLine2 halfPtSolid(sal_Int32(COL_BLACK), 0, 18, 0, table::BorderLineStyle::SOLID, 18); CPPUNIT_ASSERT_BORDER_EQUAL(halfPtSolid, getProperty<table::BorderLine2>(xCell, "LeftBorder")); - CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(0xffffffff), - getProperty<sal_Int32>(xCell, "BackColor")); + CPPUNIT_ASSERT_EQUAL(COL_TRANSPARENT, + Color(ColorTransparency, getProperty<sal_Int32>(xCell, "BackColor"))); xCell.set(xTable->getCellByName("B2"), uno::UNO_QUERY); CPPUNIT_ASSERT(xCell.is()); CPPUNIT_ASSERT_BORDER_EQUAL(halfPtSolid, getProperty<table::BorderLine2>(xCell, "LeftBorder")); CPPUNIT_ASSERT_BORDER_EQUAL(halfPtSolid, getProperty<table::BorderLine2>(xCell, "RightBorder")); - CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(0xffffffff), - getProperty<sal_Int32>(xCell, "BackColor")); + CPPUNIT_ASSERT_EQUAL(COL_TRANSPARENT, + Color(ColorTransparency, getProperty<sal_Int32>(xCell, "BackColor"))); // \sect at the end resulted in spurious page break CPPUNIT_ASSERT_EQUAL(1, getPages());