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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Dec 20 15:43:13 UTC 2018


 cui/source/dialogs/cuicharmap.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5acaf62a8d0e985b274845ac88abe36b4609b4ef
Author:     Sumit Chauhan <sumitcn25 at gmail.com>
AuthorDate: Wed Dec 19 19:38:42 2018 +0530
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Thu Dec 20 16:42:48 2018 +0100

    tdf#120562 , Selection of favorite character is not applied.
    
    We need to do rView->GrabFocus() , before calling any other function.
    
    Change-Id: I95a64f44c40070caa0064c3e73fb5d7b04b3bf4b
    Reviewed-on: https://gerrit.libreoffice.org/65437
    Tested-by: Jenkins
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index c5e23eeed08d..e85cf449d90d 100644
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -864,12 +864,13 @@ IMPL_LINK_NOARG(SvxCharacterMap, SearchUpdateHdl, weld::Entry&, void)
 
 IMPL_LINK(SvxCharacterMap, CharClickHdl, SvxCharView*, rView, void)
 {
+    rView->GrabFocus();
+
     m_aShowChar.SetText( rView->GetText() );
     m_aShowChar.SetFont(rView->GetFont());
     m_aShowChar.Invalidate();
 
     setFavButtonState(rView->GetText(), rView->GetFont().GetFamilyName());//check state
-    rView->GrabFocus();
 
     // Get the hexadecimal code
     OUString charValue = rView->GetText();


More information about the Libreoffice-commits mailing list