summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-17 20:56:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-10-18 21:40:41 +0200
commitbfadad64fe09dcdc370631e6b0d55a8705ee923c (patch)
tree74d4d3df8dafa879169470063ca579324382a2ca /vcl/source
parent8604610e193c980fe5a9339b677c7a0cfb0eee76 (diff)
use SetControlFont instead of SetPointFont to get the right size
Change-Id: I3c3d2c11d7a1faba792162fa1a61c247949b6cc3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104508 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/salvtables.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 19cd239d2848..190e265d0ada 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -2479,7 +2479,7 @@ void SalInstanceButton::set_label_line_wrap(bool wrap)
void SalInstanceButton::set_font(const vcl::Font& rFont)
{
- m_xButton->SetPointFont(*m_xButton, rFont);
+ m_xButton->SetControlFont(rFont);
m_xButton->Invalidate();
}
@@ -5559,7 +5559,7 @@ void SalInstanceLabel::set_font_color(const Color& rColor)
void SalInstanceLabel::set_font(const vcl::Font& rFont)
{
- m_xLabel->SetPointFont(*m_xLabel, rFont);
+ m_xLabel->SetControlFont(rFont);
m_xLabel->Invalidate();
}