From ad70397b7fa5af17c1769711ba80904b5543a7cd Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Tue, 10 May 2016 18:40:47 +0200 Subject: tdf#89466: SvxFillTypeBox::Selected needs to be called MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit when something is selected in order to flag that its an acceptable value and should not be reset to the previous value on losing focus Have to use SvxFillTypeBox instead of base ListBox to achieve that and so SvxFillTypeBox has to then be SVX_DLLPUBLIC Change-Id: I92f6264cc9cc0a9c7c8c0b5c3c73517fe456d13e Reviewed-on: https://gerrit.libreoffice.org/24858 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/svx/itemwin.hxx | 2 +- sd/source/ui/sidebar/SlideBackground.cxx | 1 + sd/source/ui/sidebar/SlideBackground.hxx | 2 +- sd/source/ui/view/drviews7.cxx | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/svx/itemwin.hxx b/include/svx/itemwin.hxx index f059069adb37..90167d57ebe0 100644 --- a/include/svx/itemwin.hxx +++ b/include/svx/itemwin.hxx @@ -94,7 +94,7 @@ public: // class SvxFillTypeBox -------------------------------------------------- -class SvxFillTypeBox : public FillTypeLB +class SVX_DLLPUBLIC SvxFillTypeBox : public FillTypeLB { public: SvxFillTypeBox( vcl::Window* pParent, WinBits nBits = WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL ); diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index 96d1304b519c..a772766bfc1d 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -587,6 +587,7 @@ IMPL_LINK_NOARG_TYPED(SlideBackground, FillStyleModifyHdl, ListBox&, void) default: break; } + mpFillStyle->Selected(); } IMPL_LINK_NOARG_TYPED(SlideBackground, PaperSizeModifyHdl, ListBox&, void) diff --git a/sd/source/ui/sidebar/SlideBackground.hxx b/sd/source/ui/sidebar/SlideBackground.hxx index 1497029d181c..45e3fc2193e3 100644 --- a/sd/source/ui/sidebar/SlideBackground.hxx +++ b/sd/source/ui/sidebar/SlideBackground.hxx @@ -72,7 +72,7 @@ private: VclPtr mpPaperSizeBox; VclPtr mpPaperOrientation; VclPtr mpMasterSlide; - VclPtr mpFillStyle; + VclPtr mpFillStyle; VclPtr mpFillLB; VclPtr mpFillAttr; VclPtr mpFillGrad; diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 6d08aa48cf41..85e7ddb78c23 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -1761,6 +1761,8 @@ void DrawViewShell::SetPageProperties (SfxRequest& rReq) default: break; } + + rReq.Done(); } } } -- cgit v1.2.3