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

Szymon Kłos eszkadev at gmail.com
Fri Oct 3 12:50:56 PDT 2014


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

New commits:
commit 58cd14d597fbd02a3419ab829d677af13403b726
Author: Szymon KÅ‚os <eszkadev at gmail.com>
Date:   Fri Oct 3 20:13:03 2014 +0200

    fdo#84605 : fixed style editing from the style drop down menu
    
    Change-Id: I52c0df2a66615f0b3f1de6c0ee7432107f703923
    Reviewed-on: https://gerrit.libreoffice.org/11800
    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 f9bcf18..4fbd806 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -347,8 +347,8 @@ void SvxStyleBox_Impl::ReleaseFocus()
 
 IMPL_LINK( SvxStyleBox_Impl, MenuSelectHdl, Menu*, pMenu)
 {
-    ReleaseFocus();
     OUString sEntry = OUString( (GetEntry(GetSelectEntryPos())) );
+    ReleaseFocus(); // It must be after getting entry pos!
     Sequence< PropertyValue > aArgs( 2 );
     aArgs[0].Name   = "Param";
     aArgs[0].Value  = makeAny( sEntry );


More information about the Libreoffice-commits mailing list