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>
This commit is contained in:
parent
8604610e19
commit
bfadad64fe
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue