tdf#141908 change sal_Int32 to Color

Change-Id: I0f9b0bd18fd90c05de67525222be41ef6cd8723c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157935
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
khushishikhu
2023-10-14 08:29:55 +02:00
committed by Ilmari Lauhakangas
parent 4bb809f4d1
commit 3d0a8020f9
+4 -4
View File
@@ -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()