summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-09 21:01:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-07-09 21:01:08 +0100
commit563dd59cdf84be980f4e0e2fb12566dd7e4a1633 (patch)
tree058ba228591740223ee236615fa38579c51fb77b
parentResolves: tdf#90526 don't show splashscreen for -pt -or -p (diff)
downloadcore-563dd59cdf84be980f4e0e2fb12566dd7e4a1633.tar.gz
core-563dd59cdf84be980f4e0e2fb12566dd7e4a1633.zip
Resolves: tdf#100809 Paragraph styles drop-down list
Change-Id: I9453c3c877dcd39268f7c910e8918947bdeb8fd4
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 859c717f6318..984650021ff1 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -398,14 +398,16 @@ void SvxStyleBox_Impl::ReleaseFocus()
IMPL_LINK_TYPED( SvxStyleBox_Impl, MenuSelectHdl, Menu*, pMenu, bool)
{
OUString sEntry = GetSelectEntry();
+ sal_uInt16 nMenuId = pMenu->GetCurItemId();
ReleaseFocus(); // It must be after getting entry pos!
+ if (IsInDropDown())
+ ToggleDropDown();
Sequence< PropertyValue > aArgs( 2 );
aArgs[0].Name = "Param";
aArgs[0].Value = makeAny( sEntry );
aArgs[1].Name = "Family";
aArgs[1].Value = makeAny( sal_Int16( eStyleFamily ));
- sal_uInt16 nMenuId = pMenu->GetCurItemId();
switch(nMenuId) {
case RID_SVX_UPDATE_STYLE:
{