diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-05-06 01:11:36 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-05-06 13:33:06 +0200 |
commit | 5672bfda87bce5e05e6ef1ecc20f36b4fc7a92ef (patch) | |
tree | cbf94f794972b58a48a9c311c813df461fd98e1e /oox | |
parent | ea2f86339a3affa643f0f0d81dc79041af06089f (diff) |
map full transparent solid fill to no fill, fdo#64224
(cherry picked from commit 6e2292b3cdd032edff21f0016b7f61e9bb420699)
Change-Id: I9ec33b347647bfcd6c1411c4db7af51ca597dc8e
Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'oox')
-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 611dcbe4956a..d68ff6b91d28 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1503,6 +1503,15 @@ void DrawingML::WriteFill( Reference< XPropertySet > xPropSet ) if( aFillStyle == FillStyle_HATCH ) return; + if ( aFillStyle == FillStyle_SOLID && GetProperty( xPropSet, OUString("FillTransparence") ) ) + { + // map full transparent background to no fill + sal_Int16 nVal = 0; + xPropSet->getPropertyValue( "FillTransparence" ) >>= nVal; + if ( nVal == 100 ) + aFillStyle = FillStyle_NONE; + } + switch( aFillStyle ) { case ::com::sun::star::drawing::FillStyle_SOLID : |