[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Oct 18 19:41:22 UTC 2020


 vcl/source/app/salvtables.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bfadad64fe09dcdc370631e6b0d55a8705ee923c
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Oct 17 20:56:11 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Oct 18 21:40:41 2020 +0200

    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 at redhat.com>

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();
 }
 


More information about the Libreoffice-commits mailing list