summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJuergen Funk <juergen.funk_ml@cib.de>2014-10-07 15:51:09 +0200
committerSamuel Mehrbrodt <s.mehrbrodt@gmail.com>2014-10-07 20:16:18 +0000
commit1f028ef4232a31402e983a862d9f9a1526a4da8e (patch)
tree4eff0f91f8f068eb427b6fc3bf7647ef8b651974 /svx
parent4289c346de432cc94f05aab78a9464350334b11f (diff)
Fix fdo#84591 Styles dropdown disappears when clicked on submenu
This tells the dropdown to not grab the focus. Change-Id: If1b32d1f53c12eb86ab2f92c531385578d82ae59 Reviewed-on: https://gerrit.libreoffice.org/11841 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 4fbd8068932a..9fa36cfd9c38 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -711,7 +711,7 @@ void SvxStyleBox_Impl::UserDraw( const UserDrawEvent& rUDEvt )
{
if(m_pButtons[nId] == NULL)
{
- m_pButtons[nId] = new MenuButton((Window*)pDevice, WB_FLATBUTTON);
+ m_pButtons[nId] = new MenuButton((Window*)pDevice, WB_FLATBUTTON | WB_NOPOINTERFOCUS);
m_pButtons[nId]->SetSizePixel(Size(20, aRect.GetSize().Height()));
m_pButtons[nId]->SetPopupMenu(&m_aMenu);
}