diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2025-03-10 15:14:22 +0100 |
---|---|---|
committer | Balazs Varga <balazs.varga.extern@allotropia.de> | 2025-03-12 13:20:51 +0100 |
commit | d532407e12c41c508329b7926164926e2c59fde1 (patch) | |
tree | 6ba53df55b25c266882619a91a7ffb2c4f163de1 /oox/source | |
parent | fb0b4878d312d150759ea517d279041b40cf7888 (diff) |
tdf#165636 - FILESAVE PPTX: fix extra table border lines shown
Export correctly the transparency value of table borders.
Change-Id: I22ee5e29d1846295645ce5934149cf864a178bb5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182741
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/export/shapes.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index e7dc5f4ef307..261bd5a24040 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -2517,7 +2517,13 @@ void ShapeExport::WriteBorderLine(const sal_Int32 xml_line_element, const Border if ( rBorderLine.Color == sal_Int32( COL_AUTO ) ) mpFS->singleElementNS(XML_a, XML_noFill); else - DrawingML::WriteSolidFill( ::Color(ColorTransparency, rBorderLine.Color) ); + { + ::Color nColor(ColorTransparency, rBorderLine.Color); + if (nColor.IsTransparent()) + DrawingML::WriteSolidFill( nColor, nColor.GetAlpha() ); + else + DrawingML::WriteSolidFill( nColor ); + } OUString sBorderStyle; sal_Int16 nStyle = rBorderLine.LineStyle; |