summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-08-23 12:48:56 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-08-23 16:13:10 +0200
commitc35898696f9d6157472e78426ae511bc83f3eb74 (patch)
treec754bbb363cf06caa71d9bd9335d76886ef938d1 /editeng
parentVML import: fix default value of mso-wrap-distance-left/right (diff)
downloadcore-c35898696f9d6157472e78426ae511bc83f3eb74.tar.gz
core-c35898696f9d6157472e78426ae511bc83f3eb74.zip
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')
-rw-r--r--editeng/source/items/frmitems.cxx3
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;
}