diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-07-09 21:01:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-09 21:01:08 +0100 |
commit | 563dd59cdf84be980f4e0e2fb12566dd7e4a1633 (patch) | |
tree | 058ba228591740223ee236615fa38579c51fb77b | |
parent | Resolves: tdf#90526 don't show splashscreen for -pt -or -p (diff) | |
download | core-563dd59cdf84be980f4e0e2fb12566dd7e4a1633.tar.gz core-563dd59cdf84be980f4e0e2fb12566dd7e4a1633.zip |
Resolves: tdf#100809 Paragraph styles drop-down list
Change-Id: I9453c3c877dcd39268f7c910e8918947bdeb8fd4
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 4 |
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: { |