diff options
author | Jürgen Schmidt <jsc@apache.org> | 2012-06-08 15:08:31 +0000 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-03-14 16:10:19 +0000 |
commit | bdfab9e9f362512f42b040469633851ba4cfa255 (patch) | |
tree | 8c488c9d48c4d2cd2def7157afb4b2ecca2325c2 /filter | |
parent | 065c8507bc6393468c0186370b1b991e22008b27 (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
(cherry picked from commit b82ed78c88b368747be8baccda76733a3bdfe591)
Reviewed-on: https://gerrit.libreoffice.org/2727
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index 69b7b4c7a262..f38aeec06e95 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -978,6 +978,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 ); |