diff options
author | Rishabh Kumar <kris.kr296@gmail.com> | 2016-05-27 03:44:15 +0530 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-05-27 08:57:50 +0000 |
commit | e4358002ace626c20a9e4069b9417073d09d8140 (patch) | |
tree | e5f70c259db337e451a80419193a6635bba3171f /svx | |
parent | c8754b38ce205845aad5cde3c5ad4070ce38f7d5 (diff) |
Fix gradient angle spinbox in Area sidebar tab
Regression introduced by commit - 3c99f8500f657ed84b316390d5175a6f5e56bc69
Change-Id: I65a56b44f851d374e0a6aac8b7c544f4156b67f2
Reviewed-on: https://gerrit.libreoffice.org/25524
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/area/AreaPropertyPanelBase.cxx | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx index 5a7374fe7cc2..350387b4047d 100644 --- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx @@ -161,6 +161,7 @@ void AreaPropertyPanelBase::Initialize() mpGradientStyle->SetSelectHdl( aLink ); mpLbFillGradFrom->SetSelectHdl( aLink ); mpLbFillGradTo->SetSelectHdl( aLink ); + mpMTRAngle->SetModifyHdl(LINK(this,AreaPropertyPanelBase, ChangeGradientAngle)); mpLBTransType->SetSelectHdl(LINK(this, AreaPropertyPanelBase, ChangeTrgrTypeHdl_Impl)); @@ -398,6 +399,26 @@ IMPL_LINK_NOARG_TYPED(AreaPropertyPanelBase, SelectFillTypeHdl, ListBox&, void) IMPL_LINK_NOARG_TYPED(AreaPropertyPanelBase, SelectFillAttrHdl, ListBox&, void) { + SelectFillAttrHdl_Impl(); +} + +IMPL_LINK_NOARG_TYPED(AreaPropertyPanelBase, ChangeGradientAngle, Edit&, void) +{ + SelectFillAttrHdl_Impl(); +} + +VclPtr<PopupControl> AreaPropertyPanelBase::CreateTransparencyGradientControl (PopupContainer* pParent) +{ + return VclPtrInstance<AreaTransparencyGradientControl>(pParent, *this); +} + +void AreaPropertyPanelBase::DataChanged( + const DataChangedEvent& /*rEvent*/) +{ +} + +void AreaPropertyPanelBase::SelectFillAttrHdl_Impl() +{ const drawing::FillStyle eXFS = (drawing::FillStyle)mpLbFillType->GetSelectEntryPos(); const XFillStyleItem aXFillStyleItem(eXFS); SfxObjectShell* pSh = SfxObjectShell::Current(); @@ -499,16 +520,6 @@ IMPL_LINK_NOARG_TYPED(AreaPropertyPanelBase, SelectFillAttrHdl, ListBox&, void) mpSidebarController->NotifyResize(); } -VclPtr<PopupControl> AreaPropertyPanelBase::CreateTransparencyGradientControl (PopupContainer* pParent) -{ - return VclPtrInstance<AreaTransparencyGradientControl>(pParent, *this); -} - -void AreaPropertyPanelBase::DataChanged( - const DataChangedEvent& /*rEvent*/) -{ -} - void AreaPropertyPanelBase::ImpUpdateTransparencies() { if(mpTransparanceItem.get() || mpFloatTransparenceItem.get()) |