summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-26 15:04:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-26 18:13:01 +0200
commit5cbbad4a6e3138de17093e7fdf0b4b9d5d975e53 (patch)
treefaa2b074115ef3d9e5b89bce94204ca0b9f20314
parentba9c6ad27d76de2cc4bc43cc2836a9680a3e1a9b (diff)
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 <caolanm@redhat.com>
-rw-r--r--vcl/unx/generic/glyphs/freetype_glyphcache.cxx7
1 files changed, 2 insertions, 5 deletions
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;