sc/qa/unit/subsequent_filters_test3.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 4bb809f4d1d4316d9723fe6d3c8064c3d974392c Author: Joel Puronaho <jpuro...@gmail.com> AuthorDate: Tue Jun 13 15:40:22 2023 +0300 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Sat Oct 14 08:17:52 2023 +0200 tdf#141908: CppUnittests: replace usage of sal_Int32 with colors Change-Id: I2835feb65d65dbfd7f0c23ac1e99b66d803c05ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153646 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/sc/qa/unit/subsequent_filters_test3.cxx b/sc/qa/unit/subsequent_filters_test3.cxx index 7980e8083559..a88cc136d870 100644 --- a/sc/qa/unit/subsequent_filters_test3.cxx +++ b/sc/qa/unit/subsequent_filters_test3.cxx @@ -1348,12 +1348,12 @@ CPPUNIT_TEST_FIXTURE(ScFiltersTest3, testTdf151818_SmartArtFontColor) uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xPortion(xPara->createEnumeration()->nextElement(), uno::UNO_QUERY); - sal_Int32 nActualColor{ 0 }; + Color nActualColor{ 0 }; xPortion->getPropertyValue("CharColor") >>= nActualColor; // Without fix the test would have failed with: - // - Expected: 4478058 (0x44546A) - // - Actual : 16777215 (0xFFFFFF), that is text was white - CPPUNIT_ASSERT_EQUAL(sal_Int32(0x44546A), nActualColor); + // - Expected: rgba[44546aff] + // - Actual : rgba[ffffffff], that is text was white + CPPUNIT_ASSERT_EQUAL(Color(0x44546A), nActualColor); // clrScheme. For map between name in xlsx and index from CharColorTheme see // oox::drawingml::Color::getSchemeColorIndex()