[PATCH libreoffice-4-0] map full transparent solid fill to no fill, fdo#64224

Markus Mohrhard (via Code Review) gerrit at gerrit.libreoffice.org
Sun May 5 16:40:37 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3792

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/92/3792/1

map full transparent solid fill to no fill, fdo#64224

Change-Id: I9ec33b347647bfcd6c1411c4db7af51ca597dc8e
(cherry picked from commit 6e2292b3cdd032edff21f0016b7f61e9bb420699)
---
M oox/source/export/drawingml.cxx
1 file changed, 9 insertions(+), 0 deletions(-)



diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 4eefc90..00c869f 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1504,6 +1504,15 @@
         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 :

-- 
To view, visit https://gerrit.libreoffice.org/3792
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ec33b347647bfcd6c1411c4db7af51ca597dc8e
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Markus Mohrhard <markus.mohrhard at googlemail.com>



More information about the LibreOffice mailing list