[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - oox/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Mon May 6 04:33:35 PDT 2013
oox/source/export/drawingml.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 5672bfda87bce5e05e6ef1ecc20f36b4fc7a92ef
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon May 6 01:11:36 2013 +0200
map full transparent solid fill to no fill, fdo#64224
(cherry picked from commit 6e2292b3cdd032edff21f0016b7f61e9bb420699)
Change-Id: I9ec33b347647bfcd6c1411c4db7af51ca597dc8e
Signed-off-by: Miklos Vajna <vmiklos at suse.cz>
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 611dcbe..d68ff6b 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 :
More information about the Libreoffice-commits
mailing list