diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-05-06 01:11:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-05-06 01:36:23 +0200 |
commit | 6e2292b3cdd032edff21f0016b7f61e9bb420699 (patch) | |
tree | 2d7ce92f6e6afc7b3349792f40c489ff96d00c72 | |
parent | 93abb2082ad3cae1432d69b65a89dace6646785a (diff) |
map full transparent solid fill to no fill, fdo#64224
Change-Id: I9ec33b347647bfcd6c1411c4db7af51ca597dc8e
-rw-r--r-- | oox/source/export/drawingml.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index cbabf5b6f804..c6cb94a09b34 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1525,6 +1525,15 @@ void DrawingML::WriteFill( Reference< XPropertySet > xPropSet ) if( aFillStyle == FillStyle_HATCH ) return; + if ( aFillStyle == FillStyle_SOLID && GetProperty( xPropSet, "FillTransparence" ) ) + { + // map full transparent background to no fill + sal_Int16 nVal; + xPropSet->getPropertyValue( "FillTransparence" ) >>= nVal; + if ( nVal == 100 ) + aFillStyle = FillStyle_NONE; + } + switch( aFillStyle ) { case ::com::sun::star::drawing::FillStyle_SOLID : |