From 0f6e6e82a4a693a6970540db6e98d0302f3fefa6 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Wed, 19 Apr 2023 01:47:10 +0300 Subject: 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 --- sc/source/ui/unoobj/styleuno.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sc/source/ui/unoobj') diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index f4280dd2a679..a97c12e3dec5 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -2025,6 +2025,13 @@ uno::Any ScStyleObj::getPropertyValue_Impl( std::u16string_view aPropertyName ) { if (!SvxUnoTextRangeBase::GetPropertyValueHelper(*pItemSet, pResultEntry, aAny)) aAny = SvxItemPropertySet_getPropertyValue(pResultEntry, *pItemSet); + + // since the sfx uint16 item now exports a sal_Int32, we may have to fix this here + if (pResultEntry->aType == ::cppu::UnoType::get() && + aAny.getValueType() == ::cppu::UnoType::get()) + { + aAny <<= static_cast(aAny.get()); + } } } } -- cgit v1.2.3