summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2019-06-01 13:28:36 +0200
committerAndras Timar <andras.timar@collabora.com>2019-06-04 14:21:52 +0200
commit4531b32e0b58933179408fcff779aabe659e50a9 (patch)
tree723c31613f9b706f4ed3da9fe96250c1d47b128e /cui/source
parentb6a3d0566628e2d8416708d0410193435a3b8e53 (diff)
tdf#125576: Empty recent characters in special characters dialog...
... for bullet customization Change-Id: Ica66dcc0d3f379886788d426941b98d170444799 Reviewed-on: https://gerrit.libreoffice.org/73306 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> (cherry picked from commit 7dc6525fddc418359eefa2cd7c7ecbbd1269e8f6) Reviewed-on: https://gerrit.libreoffice.org/73310 Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/dialogs/cuicharmap.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index 807b772fdbcd..4994582c250c 100644
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -921,8 +921,12 @@ IMPL_LINK_NOARG(SvxCharacterMap, SearchCharSelectHdl, SvxShowCharSet*, void)
IMPL_LINK_NOARG(SvxCharacterMap, InsertClickHdl, weld::Button&, void)
{
- insertCharToDoc(m_aShowChar.GetText());
- m_xDialog->response(RET_OK);
+ OUString sChar = m_aShowChar.GetText();
+ insertCharToDoc(sChar);
+ // Need to update recent character list, when OK button does not insert
+ if(!m_xFrame.is())
+ updateRecentCharacterList(sChar, aFont.GetFamilyName());
+ m_xDialog->response(RET_OK);
}
IMPL_LINK_NOARG(SvxCharacterMap, FavSelectHdl, weld::Button&, void)