vcl/unx/generic/glyphs/freetype_glyphcache.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 5cbbad4a6e3138de17093e7fdf0b4b9d5d975e53
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Aug 26 15:04:17 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Aug 26 18:13:01 2022 +0200

    crashtesting: only warn about outsize scretch value
    
    ooo60911-3.odt renders fine with todays freetype and cairo, if
    there are similar problems elsewhere, better to cut off in
    CairoTextRender::DrawTextLayout instead
    
    Change-Id: I39ed574d441d929f307ca72290a52d2dc41f8356
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138878
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx 
b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
index c9c471144bd3..a995a0fe1f2b 100644
--- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
+++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
@@ -418,11 +418,8 @@ FreetypeFont::FreetypeFont(FreetypeFontInstance& 
rFontInstance, std::shared_ptr<
         SAL_WARN("vcl", "FreetypeFont negative font width of: " << mnWidth);
         return;
     }
-    if (mfStretch > +148.0 || mfStretch < -148.0)
-    {
-        SAL_WARN("vcl", "FreetypeFont excessive stretch of: " << mfStretch);
-        return;
-    }
+
+    SAL_WARN_IF(mfStretch > +64.0 || mfStretch < -64.0, "vcl", "FreetypeFont 
excessive stretch of: " << mfStretch);
 
     if( !maFaceFT )
         return;

Reply via email to