Author: jsc
Date: Fri Jun  8 16:08:31 2012
New Revision: 1348136

URL: http://svn.apache.org/viewvc?rev=1348136&view=rev
Log:
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


Modified:
    incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx

Modified: incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx
URL: 
http://svn.apache.org/viewvc/incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx?rev=1348136&r1=1348135&r2=1348136&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx Fri Jun  8 
16:08:31 2012
@@ -994,6 +994,15 @@ void EscherPropertyContainer::CreateLine
                }
        }
        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 )
     {


Reply via email to