libreoffice/bsc1204825.patch
Danilo Spinella a6b1da5fed Accepting request 1056698 from LibreOffice:7.4
- Fix bsc#1204825 - LO-L3: PPTX: text box shows that does not show in PowerPoint
  * bsc1204825.patch

OBS-URL: https://build.opensuse.org/request/show/1056698
OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=1052
2023-01-10 09:32:34 +00:00

18 lines
801 B
Diff

diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index 1dd4eb3..8fefc18 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -662,6 +662,12 @@
const sal_Int32 aFillColor = static_cast<sal_Int32>(
pProperties.maFillProperties.maFillColor.getColor( rGraphicHelper ).GetRGBColor() );
xSet->setPropertyValue( UNO_NAME_FILLCOLOR, uno::Any( aFillColor ) );
+
+ if (pProperties.maFillProperties.maFillColor.hasTransparency())
+ {
+ const sal_Int16 aTransparence = pProperties.maFillProperties.maFillColor.getTransparency();
+ xSet->setPropertyValue(UNO_NAME_FILL_TRANSPARENCE, uno::Any(aTransparence));
+ }
}
else
{