[Libreoffice-commits] core.git: svx/source

Juergen Funk juergen.funk_ml at cib.de
Tue Oct 7 13:16:38 PDT 2014


 svx/source/tbxctrls/tbcontrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1f028ef4232a31402e983a862d9f9a1526a4da8e
Author: Juergen Funk <juergen.funk_ml at cib.de>
Date:   Tue Oct 7 15:51:09 2014 +0200

    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 at gmail.com>
    Tested-by: Samuel Mehrbrodt <s.mehrbrodt at gmail.com>

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 4fbd806..9fa36cf 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);
                         }


More information about the Libreoffice-commits mailing list