Apache OpenOffice (AOO) Bugzilla – Issue 119870
[From Symphony]Line transparency value is lost after saving as another ppt by AOO
Last modified: 2012-12-26 08:06:15 UTC
Created attachment 78117 [details] sample file build: AOO3.4 r1327774 steps: 1. Launch AOO, open the attached .ppt. 2. Save the file as *.ppt 3. Reopen the saved ppt file. 4. Check "Line Transparency" value. Defect: "Line Transparency" value is changed from 80% to 0%.
I am looking at the issue
The root cause found: The linetransparency attribute is not exported at all. The attribute can be exported in function void EscherPropertyContainer::CreateLineProperties Here is the export code for ppt --------------------------------------------------------------- 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 ); } ----------------------------------------------------------------
Created attachment 78205 [details] samplefortestlinetransparency The sample created by me to test the line transparency. There are three lines with different color transparency values (0,100 50).
Created attachment 78206 [details] patch for ppt line color transparency export lost issue I have tested with sample files for export ppt and odp. Opened again with AOO and MS Power point no issue found
reviewed, built and tested, patch applied trunk -> revision 1348136
in MS2010 ,confirm fixing defect ,pass