summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/export/shapes.cxx8
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;