oox/qa/unit/shape.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 3d0a8020f932c0e39a69e555ca4cc4ba7084d2cd Author: khushishikhu <dpskhu13...@gmail.com> AuthorDate: Fri Oct 13 18:03:34 2023 +0530 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Sat Oct 14 08:29:55 2023 +0200 tdf#141908 change sal_Int32 to Color Change-Id: I0f9b0bd18fd90c05de67525222be41ef6cd8723c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157935 Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/oox/qa/unit/shape.cxx b/oox/qa/unit/shape.cxx index 5033ed660e30..54ea52cce19c 100644 --- a/oox/qa/unit/shape.cxx +++ b/oox/qa/unit/shape.cxx @@ -309,12 +309,12 @@ CPPUNIT_TEST_FIXTURE(OoxShapeTest, testTdf54095_SmartArtThemeTextColor) 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: 2050429 (0x1F497D) - // - Actual : 16777215 (0xFFFFFF), that is text was white - CPPUNIT_ASSERT_EQUAL(sal_Int32(0x1F497D), nActualColor); + // - Expected: rgba[1f497dff] + // - Actual : rgba[ffffffff], that is text was white + CPPUNIT_ASSERT_EQUAL(Color(0x1F497D), nActualColor); // clrScheme. For map between name in docx and index from CharComplexColor see // oox::drawingml::Color::getSchemeColorIndex()