summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrés Maldonado <amaldonado@linagora.com>2019-07-11 11:55:44 +0200
committerAndrés Maldonado <amaldonado@linagora.com>2019-07-11 11:55:44 +0200
commit9d571da9f4d90ac6b2b41ce1b2fee397ba84f016 (patch)
treef313d56d631d492d6e3c783ff2e38a1a39f15250
parentd593771c4f2e25a253354859de5c62a138505b7a (diff)
Revert "tosca#24347: Pb ombrage dans impress"
This reverts commit 6dc6efa49a990e826fd3978de8ba506e60a58662. Change-Id: I6b026c5eed2d5c50bb99c65364aed41dc7c39c31
-rw-r--r--sd/source/ui/view/drviews2.cxx7
-rw-r--r--svx/source/sidebar/shadow/ShadowPropertyPanel.cxx6
2 files changed, 3 insertions, 10 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index b4caebeec73b..c0d53ba92a55 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -561,13 +561,6 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
sal_uInt16 nSId = rReq.GetSlot();
- if (nSId == SID_ATTR_FILL_SHADOW) {
- // TOSCA#24347
- SfxItemSet itemSet( GetPool(), svl::Items<SDRATTR_SHADOWTRANSPARENCE, SDRATTR_SHADOWTRANSPARENCE>{} );
- itemSet.Put( SdrPercentItem(SDRATTR_SHADOWTRANSPARENCE, 1 ) );
- mpDrawView->SetAttributes( itemSet );
- }
-
switch ( nSId )
{
case SID_OUTLINE_TEXT_AUTOFIT:
diff --git a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx
index 06afe9e656f8..7b39c5fcf53b 100644
--- a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx
+++ b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx
@@ -127,7 +127,7 @@ void ShadowPropertyPanel::Initialize()
mpLBShadowColor->SetSelectHdl( LINK( this, ShadowPropertyPanel, ModifyShadowColorHdl ) );
mpShadowAngle->SetModifyHdl( LINK(this, ShadowPropertyPanel, ModifyShadowDistanceHdl) );
mpShadowDistance->SetModifyHdl( LINK(this, ShadowPropertyPanel, ModifyShadowDistanceHdl) );
- mpShadowTransSlider->SetRange(Range(1,100));
+ mpShadowTransSlider->SetRange(Range(0,100));
mpShadowTransSlider->SetUpdateMode(true);
mpShadowTransSlider->SetSlideHdl( LINK(this, ShadowPropertyPanel, ModifyShadowTransSliderHdl) );
for(sal_uInt16 i = 0; i <= 20 ; i++)
@@ -294,11 +294,11 @@ void ShadowPropertyPanel::NotifyItemUpdate(
const SdrPercentItem* pTransparencyItem = dynamic_cast< const SdrPercentItem* >(pState);
if(pTransparencyItem)
{
- sal_uInt16 nVal = pTransparencyItem->GetValue();
+ const sal_uInt16 nVal = pTransparencyItem->GetValue();
SetTransparencyValue(nVal);
}
else
- SetTransparencyValue(1);
+ SetTransparencyValue(0);
}
}
break;