summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorkhushishikhu <dpskhu13108@gmail.com>2023-10-13 18:03:34 +0530
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2023-10-14 08:29:55 +0200
commit3d0a8020f932c0e39a69e555ca4cc4ba7084d2cd (patch)
treedac22c947ab079e99d5d06178cd21012e87fe33e /oox
parent4bb809f4d1d4316d9723fe6d3c8064c3d974392c (diff)
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>
Diffstat (limited to 'oox')
-rw-r--r--oox/qa/unit/shape.cxx8
1 files changed, 4 insertions, 4 deletions
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()