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

New commits:
commit 055c906d7b3f2e3709292d1410358d4e66a500ed
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Aug 4 00:00:36 2024 +0500
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sat Aug 3 22:44:24 2024 +0200

    tdf#123527: use the new font in SvxSearchCharSet::RecalculateFont
    
    Taking the font from the render context makes no sense, when the
    intention is to set the new font set in SvxShowCharSet::SetFont.
    Basically, it now does a similar thing as in overridden parent's
    SvxShowCharSet::RecalculateFont.
    
    Change-Id: I1077a44b41d881415e1424146bda8aeb47d8ab17
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171446
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/svx/source/dialog/searchcharmap.cxx 
b/svx/source/dialog/searchcharmap.cxx
index c1c289d6366d..16acbc61e985 100644
--- a/svx/source/dialog/searchcharmap.cxx
+++ b/svx/source/dialog/searchcharmap.cxx
@@ -170,7 +170,7 @@ void SvxSearchCharSet::RecalculateFont(vcl::RenderContext& 
rRenderContext)
 
     Size aSize(GetOutputSizePixel());
 
-    vcl::Font aFont = rRenderContext.GetFont();
+    vcl::Font aFont = maFont;
     aFont.SetWeight(WEIGHT_LIGHT);
     aFont.SetAlignment(ALIGN_TOP);
     int nFontHeight = (aSize.Height() - 5) * 2 / (3 * ROW_COUNT);

Reply via email to