summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorKatarina Behrens <bubli@bubli.org>2015-03-31 22:44:28 +0200
committerAndras Timar <andras.timar@collabora.com>2015-04-04 10:43:26 +0200
commit43d7573fa8ec34efb51f88bde8ce282b426d84d3 (patch)
tree2b4d0e89081a8ac2e0da0b65cc01f99636c8603c /cui
parenta6b27c8db2df1a3dc4b124b661ac30ad51cd725f (diff)
tdf#84228: Fix annoying double shadow in preview
SfxItemSet passed to ActivatePage method contains both rectangle AND shadow attributes, causing the old shadow to stick around even after new shadow attributes have been set. Thus, set shadow to none in a local copy of SfxItemSet and use that one to repaint the rectangle Change-Id: If798351fbecaaf951ef0479ae4a2c70d2db68ca4 Reviewed-on: https://gerrit.libreoffice.org/15099 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/tpshadow.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/cui/source/tabpages/tpshadow.cxx b/cui/source/tabpages/tpshadow.cxx
index 6aa0fe91962f..3216853a05b8 100644
--- a/cui/source/tabpages/tpshadow.cxx
+++ b/cui/source/tabpages/tpshadow.cxx
@@ -223,6 +223,14 @@ void SvxShadowTabPage::ActivatePage( const SfxItemSet& rSet )
else
m_pLbShadowColor->SelectEntryPos( nPos );
+ SfxItemSet rAttribs( rSet );
+ // rSet contains shadow attributes too, but we want
+ // to use it for updating rectangle attributes only,
+ // so set the shadow to none here
+ SdrOnOffItem aItem( makeSdrShadowItem( false ));
+ rAttribs.Put( aItem );
+
+ m_pCtlXRectPreview->SetRectangleAttributes( rAttribs );
ModifyShadowHdl_Impl( this );
}
nPageType = PT_SHADOW;