summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-02-06 18:20:28 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2020-02-10 10:16:44 +0100
commitaf14b2096e363e8f09c2da749f9199bebb7cbb40 (patch)
tree512eff09932ddb3e91c25ec8a263ff8d531d0efb /lotuswordpro
parent396d1019413ea6d7e3965e47beae0837d2cf84f2 (diff)
use color instead of int
Change-Id: I7a837b61af666b6e13519df43255ff309d54f170 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88123 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/CppunitTest_lotuswordpro_import_test.mk1
-rw-r--r--lotuswordpro/qa/cppunit/import_test.cxx8
2 files changed, 5 insertions, 4 deletions
diff --git a/lotuswordpro/CppunitTest_lotuswordpro_import_test.mk b/lotuswordpro/CppunitTest_lotuswordpro_import_test.mk
index 325b1db2b921..315fea09a04d 100644
--- a/lotuswordpro/CppunitTest_lotuswordpro_import_test.mk
+++ b/lotuswordpro/CppunitTest_lotuswordpro_import_test.mk
@@ -21,6 +21,7 @@ $(eval $(call gb_CppunitTest_use_libraries,lotuswordpro_import_test, \
cppuhelper \
sal \
test \
+ tl \
unotest \
vcl \
))
diff --git a/lotuswordpro/qa/cppunit/import_test.cxx b/lotuswordpro/qa/cppunit/import_test.cxx
index d40c56c54427..8093dc5c6247 100644
--- a/lotuswordpro/qa/cppunit/import_test.cxx
+++ b/lotuswordpro/qa/cppunit/import_test.cxx
@@ -149,9 +149,9 @@ CPPUNIT_TEST_FIXTURE(LotusWordProTest, paragraphProperties)
uno::Reference<text::XTextRange> const xParagraph7(xParaEnum->nextElement(),
uno::UNO_QUERY_THROW);
uno::Reference<beans::XPropertySet> xPropertySet7(xParagraph7, uno::UNO_QUERY);
- sal_Int32 nParaBackColor;
+ Color nParaBackColor;
xPropertySet7->getPropertyValue("ParaBackColor") >>= nParaBackColor;
- CPPUNIT_ASSERT_EQUAL(sal_Int32(16711680), nParaBackColor);
+ CPPUNIT_ASSERT_EQUAL(Color(0xff0000), nParaBackColor);
table::BorderLine2 aTopBorder;
xPropertySet7->getPropertyValue("TopBorder") >>= aTopBorder;
@@ -223,9 +223,9 @@ CPPUNIT_TEST_FIXTURE(LotusWordProTest, paragraphProperties)
uno::Reference<text::XTextRange> const xParagraph13(xParaEnum->nextElement(),
uno::UNO_QUERY_THROW);
uno::Reference<beans::XPropertySet> xPropertySet13(xParagraph13, uno::UNO_QUERY);
- sal_Int32 nCharColor;
+ Color nCharColor;
xPropertySet13->getPropertyValue("CharColor") >>= nCharColor;
- CPPUNIT_ASSERT_EQUAL(sal_Int32(65280), nCharColor);
+ CPPUNIT_ASSERT_EQUAL(Color(0x00ff00), nCharColor);
}
CPPUNIT_PLUGIN_IMPLEMENT();