summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-06 01:11:36 +0200
committerPetr Mladek <pmladek@suse.cz>2013-05-07 13:21:05 +0200
commit71f6188660b88510182e772f0dca50d6d04208d8 (patch)
treead21445bb73e06d85814dec0e74f2d7deddebb16 /oox/source
parent29d303b7430e90ab5d81c8217ff357bef351868a (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/source')
-rw-r--r--oox/source/export/drawingml.cxx9
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 :