summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürgen Schmidt <jsc@apache.org>2012-06-08 15:08:31 +0000
committerEike Rathke <erack@redhat.com>2013-03-14 16:10:49 +0100
commitb82ed78c88b368747be8baccda76733a3bdfe591 (patch)
tree98c33be68f63a98b416dec75417a9a34fa3511b8
parent23a2f5fce5844b6590e474939f2e3f5f87aa5256 (diff)
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
-rw-r--r--filter/source/msfilter/escherex.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 7fbe40a3469c..34fe8a508e7a 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -967,6 +967,15 @@ void EscherPropertyContainer::CreateLineProperties(
}
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 );