Kaydet (Commit) 94c9b800 authored tarafından Andre Fischer's avatar Andre Fischer

#i119478# Fixed application of transparency to table cells.

Patch by: Lei Debin
üst 55eb8e85
...@@ -7589,14 +7589,10 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell ) ...@@ -7589,14 +7589,10 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
if ( eFillStyle != XFILL_NONE ) if ( eFillStyle != XFILL_NONE )
{ {
sal_Int16 nFillTransparence( ( (const XFillTransparenceItem&)pObj->GetMergedItem( XATTR_FILLTRANSPARENCE ) ).GetValue() ); 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" ) ) ); static const rtl::OUString sFillTransparence( String( RTL_CONSTASCII_USTRINGPARAM( "FillTransparence" ) ) );
xPropSet->setPropertyValue( sFillTransparence, Any( nFillTransparence ) ); xPropSet->setPropertyValue( sFillTransparence, Any( nFillTransparence ) );
} }
} }
}
catch( Exception& ) catch( Exception& )
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment