svx/source/dialog/cuicharmap.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit cbcf22eb8748d59857b29a8792377a10fc6c42b2
Author:     Oliver Specht <[email protected]>
AuthorDate: Mon Feb 5 14:26:48 2024 +0100
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Thu Feb 8 18:48:13 2024 +0100

    tdf#159572 select font according to recent settings
    
    selection of a recently inserted special character applies the
    stored font to make sure the character is not inserted wit a
    font that doesn't contain the symbol
    
    Change-Id: Id61bfac3a2ff22dbdae8a5b83f000d3f0c3e992b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163004
    Tested-by: Jenkins
    Tested-by: Gabor Kelemen <[email protected]>
    Reviewed-by: Gabor Kelemen <[email protected]>

diff --git a/svx/source/dialog/cuicharmap.cxx b/svx/source/dialog/cuicharmap.cxx
index 0d73c0d1b6dd..430bf250fdcd 100644
--- a/svx/source/dialog/cuicharmap.cxx
+++ b/svx/source/dialog/cuicharmap.cxx
@@ -523,6 +523,7 @@ IMPL_LINK(SvxCharacterMap, CharClickHdl, SvxCharView*, 
rView, void)
 {
     rView->GrabFocus();
 
+    SetCharFont(rView->GetFont());
     m_aShowChar.SetText( rView->GetText() );
     m_aShowChar.SetFont(rView->GetFont());
     m_aShowChar.Invalidate();

Reply via email to