summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-08-04 00:00:36 +0500
committerXisco Fauli <xiscofauli@libreoffice.org>2024-08-21 12:29:07 +0200
commitb3104dab9c9ef6cdbc0535a066011eb43a58cd09 (patch)
tree2194fb03b73cbe8e89a167ba2e6b889f0ca2f41d /svx
parented99f19b819dd057cc6f4411639d8b4f9a9d4578 (diff)
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.kaganski@collabora.com> (cherry picked from commit 055c906d7b3f2e3709292d1410358d4e66a500ed) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172003 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/searchcharmap.cxx2
1 files changed, 1 insertions, 1 deletions
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);