vcl/source/edit/texteng.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d61e4b989574b16199773042808773a2d67acdb2
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sat Apr 30 15:55:58 2022 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sun May 1 11:02:32 2022 +0200

    don't use an empty fontname, reuse the default from the virtual dev
    
    zero size font is odd, but that's as it was already
    
    Change-Id: Ib430f2ff2a53c21dc7d15d11377762ab336a61e0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133660
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 028ca5a897b0..07ea9f783e5e 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -96,7 +96,7 @@ TextEngine::TextEngine()
 
     ImpInitDoc();
 
-    vcl::Font aFont;
+    vcl::Font aFont(mpRefDev->GetFont().GetFamilyName(), Size(0, 0));
     aFont.SetTransparent( false );
     Color aFillColor( aFont.GetFillColor() );
     aFillColor.SetAlpha( 255 );

Reply via email to