[PATCH libreoffice-4-0] i#119870: Line transparency value is lost after saving as an...

Eike Rathke (via Code Review) gerrit at gerrit.libreoffice.org
Thu Mar 14 08:13:02 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2727

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/27/2727/1

i#119870: Line transparency value is lost after saving as another ppt by AOO

fix: export linetransparency attribute

Patch By: Lei Debin
Found By: phoenix wanglf
Review By: jsc

Change-Id: I56a589036d1e4e2399f5a1a94283ebd4ce2126f0
(cherry picked from commit b82ed78c88b368747be8baccda76733a3bdfe591)
---
M filter/source/msfilter/escherex.cxx
1 file changed, 9 insertions(+), 0 deletions(-)



diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 69b7b4c..f38aeec 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -978,6 +978,15 @@
     }
     AddOpt( ESCHER_Prop_lineJoinStyle, eLineJoin );
 
+    if ( EscherPropertyValueHelper::GetPropertyValue(
+        aAny, rXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "LineTransparence" ) ), sal_True ) )
+    {
+        sal_Int16 nTransparency = 0;
+        if ( aAny >>= nTransparency )
+            AddOpt( ESCHER_Prop_lineOpacity, ( ( 100 - nTransparency ) << 16 ) / 100 );
+    }
+
+
     if ( bEdge == sal_False )
     {
         AddOpt( ESCHER_Prop_fFillOK, 0x1001 );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56a589036d1e4e2399f5a1a94283ebd4ce2126f0
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Eike Rathke <erack at redhat.com>



More information about the LibreOffice mailing list