summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2023-04-19 01:47:10 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2023-04-19 13:31:17 +0200
commit0f6e6e82a4a693a6970540db6e98d0302f3fefa6 (patch)
tree7e05587e23f22f23f9a1875ba63547f4845fd559 /sc/qa
parentb28fd940ca46828be624679863364b4db89dd38c (diff)
sc drawstyles: Fix export of transparency
Change-Id: I1abf277223718ae2d650728e5bd141372a771a87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150590 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/subsequent_export_test4.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/qa/unit/subsequent_export_test4.cxx b/sc/qa/unit/subsequent_export_test4.cxx
index eb3af3a2b2bf..25eb30e19245 100644
--- a/sc/qa/unit/subsequent_export_test4.cxx
+++ b/sc/qa/unit/subsequent_export_test4.cxx
@@ -1499,8 +1499,9 @@ CPPUNIT_TEST_FIXTURE(ScExportTest4, testShapeStyles)
uno::Reference<style::XStyle> xStyle(
xMSF->createInstance("com.sun.star.style.GraphicStyle"), uno::UNO_QUERY_THROW);
xGraphicStyles->insertByName("MyStyle1", Any(xStyle));
- uno::Reference<beans::XPropertySet>(xStyle, uno::UNO_QUERY_THROW)
- ->setPropertyValue("FillColor", Any(COL_RED));
+ uno::Reference<beans::XPropertySet> xPropertySet(xStyle, uno::UNO_QUERY_THROW);
+ xPropertySet->setPropertyValue("FillColor", Any(COL_RED));
+ xPropertySet->setPropertyValue("FillTransparence", Any(sal_Int16(40)));
xStyle.set(xMSF->createInstance("com.sun.star.style.GraphicStyle"), uno::UNO_QUERY_THROW);
xGraphicStyles->insertByName("MyStyle2", Any(xStyle));
@@ -1540,6 +1541,8 @@ CPPUNIT_TEST_FIXTURE(ScExportTest4, testShapeStyles)
Color nColor;
xShape->getPropertyValue("FillColor") >>= nColor;
CPPUNIT_ASSERT_EQUAL(COL_RED, nColor);
+ CPPUNIT_ASSERT_EQUAL(sal_Int16(40),
+ xShape->getPropertyValue("FillTransparence").get<sal_Int16>());
}
}