summaryrefslogtreecommitdiff
path: root/sw/qa/extras/uiwriter
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-03-28 13:48:02 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-03-28 22:15:26 +0200
commite506bf303c830e974e3b9972887d2c5ec0dbf480 (patch)
tree6e90dc73aec7ed776c4ee3505369921c9e6ac1f5 /sw/qa/extras/uiwriter
parentac77243a1abd4d3084866482c407f6744faeced7 (diff)
sw: use getProperty<Color> when possible
Change-Id: I50339493b0034667e9cd317940102b13066f901c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132203 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/uiwriter')
-rw-r--r--sw/qa/extras/uiwriter/uiwriter7.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter7.cxx b/sw/qa/extras/uiwriter/uiwriter7.cxx
index 38554544e212..15c51075c1eb 100644
--- a/sw/qa/extras/uiwriter/uiwriter7.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter7.cxx
@@ -1739,8 +1739,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest7, testTableBackgroundColor)
//Checking cells for background color only A1 should be modified
uno::Reference<table::XCell> xCell;
xCell = xTable->getCellByName("A1");
- CPPUNIT_ASSERT_EQUAL(Color(0xFF00FF),
- Color(ColorTransparency, getProperty<sal_Int32>(xCell, "BackColor")));
+ CPPUNIT_ASSERT_EQUAL(Color(0xFF00FF), getProperty<Color>(xCell, "BackColor"));
xCell = xTable->getCellByName("A2");
CPPUNIT_ASSERT_EQUAL(sal_Int32(-1), getProperty<sal_Int32>(xCell, "BackColor"));
xCell = xTable->getCellByName("A3");