diff options
author | varshneydevansh <varshney.devansh614@gmail.com> | 2024-02-07 14:23:50 +0530 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-02-10 11:47:05 +0100 |
commit | b370357b40b55cece8407eea2dc0014a5aec0d17 (patch) | |
tree | 0e074e1299e68f08abe3c980b135f4936bd53628 /oox | |
parent | 49111fe70fec5a5f074e6c1b1dd60f6b57139a25 (diff) |
tdf#141908: replace usage of sal_Int32 with colors
Change-Id: I71d94239c155f41d4535c023ea3aa8f974fcf2da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163082
Tested-by: Jenkins
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/drawingml.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/qa/unit/drawingml.cxx b/oox/qa/unit/drawingml.cxx index 6ae4d08f48a6..fa3e39c1bbff 100644 --- a/oox/qa/unit/drawingml.cxx +++ b/oox/qa/unit/drawingml.cxx @@ -378,13 +378,13 @@ CPPUNIT_TEST_FIXTURE(OoxDrawingmlTest, testChartThemeOverride) uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xPortion(xPara->createEnumeration()->nextElement(), uno::UNO_QUERY); - sal_Int32 nActual{ 0 }; + Color nActual{ 0 }; xPortion->getPropertyValue("CharColor") >>= nActual; // Without the accompanying fix in place, this test would have failed with: // - Expected: 4485828 (0x4472c4) // - Actual : 16711680 (0xff0000) // i.e. the text color was red, not blue. - CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(0x4472C4), nActual); + CPPUNIT_ASSERT_EQUAL(Color(0x4472C4), nActual); } CPPUNIT_TEST_FIXTURE(OoxDrawingmlTest, testPptxTheme) |