diff options
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 5af5dce2d12f..1deec7c82f74 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -577,6 +577,7 @@ void DrawingML::WriteOutline( const Reference<XPropertySet>& rXPropSet ) sal_uInt32 nLineWidth = 0; sal_uInt32 nColor = 0; + sal_Int32 nColorAlpha = MAX_PERCENT; bool bColorSet = false; const char* cap = nullptr; drawing::LineDash aLineDash; @@ -656,6 +657,10 @@ void DrawingML::WriteOutline( const Reference<XPropertySet>& rXPropSet ) nColor = mAny.get<sal_uInt32>() & 0xffffff; bColorSet = true; } + if ( GETA( LineTransparence ) ) + { + nColorAlpha = MAX_PERCENT - (mAny.get<sal_Int16>() * PER_PERCENT); + } break; } @@ -670,7 +675,7 @@ void DrawingML::WriteOutline( const Reference<XPropertySet>& rXPropSet ) if( nColor != nOriginalColor ) { // the user has set a different color for the line - WriteSolidFill( nColor ); + WriteSolidFill( nColor, nColorAlpha ); } else if( !sColorFillScheme.isEmpty() ) { @@ -687,7 +692,7 @@ void DrawingML::WriteOutline( const Reference<XPropertySet>& rXPropSet ) } else { - WriteSolidFill( nColor ); + WriteSolidFill( nColor, nColorAlpha ); } } |