diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-08-23 12:48:56 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-08-23 16:13:10 +0200 |
commit | c35898696f9d6157472e78426ae511bc83f3eb74 (patch) | |
tree | c754bbb363cf06caa71d9bd9335d76886ef938d1 /editeng/source/items | |
parent | b6a4247ea5eec433493672770e3023fb9ae7880a (diff) |
SvxShadowItem: allow setting transparency other than 0% or 100%
Also adjust SwFrm::PaintShadow(), seems that can't deal with
transparency ATM (always paints white in case of even minimal
transparency).
Change-Id: I88baea732d6ef01b2e516af562bc424775c38f84
Diffstat (limited to 'editeng/source/items')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 987c888be328..5e93f619a07d 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1313,7 +1313,7 @@ bool SvxShadowItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const aShadow.Location = eSet; aShadow.ShadowWidth = bConvert ? TWIP_TO_MM100_UNSIGNED(nWidth) : nWidth; aShadow.IsTransparent = aShadowColor.GetTransparency() > 0; - aShadow.Color = aShadowColor.GetRGBColor(); + aShadow.Color = aShadowColor.GetColor(); switch ( nMemberId ) { @@ -1372,7 +1372,6 @@ bool SvxShadowItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) nWidth = bConvert ? MM100_TO_TWIP(aShadow.ShadowWidth) : aShadow.ShadowWidth; Color aSet(aShadow.Color); - aSet.SetTransparency(aShadow.IsTransparent ? 0xff : 0); aShadowColor = aSet; } |