summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorSumit Chauhan <sumitcn25@gmail.com>2018-12-19 19:38:42 +0530
committerTamás Zolnai <tamas.zolnai@collabora.com>2018-12-20 16:42:48 +0100
commit5acaf62a8d0e985b274845ac88abe36b4609b4ef (patch)
tree3b493410a1e4c22f46f158e3b828aa5fa89a40df /cui
parenta68a85faf2fd40e65efe54fa35e2d32fdc552c23 (diff)
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@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/cuicharmap.cxx3
1 files changed, 2 insertions, 1 deletions
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();