incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119478] [From Symphony]PPT Import:Cell background color in table gets lost while opening a ppt file with AOO
Date Thu, 07 Jun 2012 06:48:41 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119478

--- Comment #5 from Lei Debin <debin.lei@gmail.com> ---
After more investigation, I have found the root cause.
There is a function named as:
void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
in main\filter\source\msfilter\svdfppt.cxx
The function will apply the attributes for the cell of tables in SD
application.
Here is the codes for processing the transparent of the background cell color
---------------------------------------------------------------------------
sal_Int16 nFillTransparence( ( (const
XFillTransparenceItem&)pObj->GetMergedItem( XATTR_FILLTRANSPARENCE )
).GetValue() );
if ( nFillTransparence != 100 )
{
     nFillTransparence *= 100;
     static const rtl::OUString sFillTransparence(       
String(RTL_CONSTASCII_USTRINGPARAM( "FillTransparence" ) ) );
      xPropSet->setPropertyValue( sFillTransparence, Any( nFillTransparence ));
}  
------------------------------------------------------------------------
The var nFillTransparence is ranged from 0(solid) to 100(completed
transparent).
So the  nFillTransparence *= 100; is complete wrong. 
It should be removed.

And when nFillTransparence == 100 need to be set the value too, otherwise, the
color will be solid, not transparent.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message