sfx2/source/control/charwin.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 8b7df7b9ecf839584c74518456e5f01101eb9b5c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Oct 5 15:48:10 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Oct 5 17:45:19 2022 +0200

    tdf#115634 recent/favorite widgets not hidpi scaled
    
    Change-Id: I65c74bd443b91827f62d46968ce8fda948fc6c26
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140984
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sfx2/source/control/charwin.cxx b/sfx2/source/control/charwin.cxx
index 567f365e6b32..39f473ce47b9 100644
--- a/sfx2/source/control/charwin.cxx
+++ b/sfx2/source/control/charwin.cxx
@@ -21,6 +21,7 @@
 #include <vcl/virdev.hxx>
 #include <vcl/event.hxx>
 #include <vcl/svapp.hxx>
+#include <vcl/weldutils.hxx>
 #include <sfx2/charwin.hxx>
 #include <comphelper/dispatchcommand.hxx>
 #include <comphelper/propertyvalue.hxx>
@@ -43,9 +44,9 @@ void SvxCharView::SetDrawingArea(weld::DrawingArea* 
pDrawingArea)
     const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
     vcl::Font aFont = rStyleSettings.GetLabelFont();
     const Size aFontSize = aFont.GetFontSize();
-    aFont.SetFontSize(Size(aFontSize.Width() * 2.5, aFontSize.Height() * 2.5));
+    aFont.SetFontSize(Size(aFontSize.Width() * 2, aFontSize.Height() * 2));
     mxVirDev->Push(PUSH_ALLFONT);
-    mxVirDev->SetFont(aFont);
+    weld::SetPointFont(*mxVirDev, aFont);
     pDrawingArea->set_size_request(mxVirDev->approximate_digit_width() * 2,
                                    mxVirDev->GetTextHeight());
     mxVirDev->Pop();

Reply via email to