66537 was an issuezilla bug

Change-Id: I17f55b445823a62f2396c4d5a30041c55bd87494
Reviewed-on: https://gerrit.libreoffice.org/78563
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2019-09-03 15:07:55 +01:00
parent 5bcf85f656
commit b6fb63249b

View File

@@ -427,7 +427,7 @@ FreetypeFont::FreetypeFont(LogicalFontInstance* pFontInstance, FreetypeFontInfo*
if( !mnWidth )
mnWidth = rFSD.mnHeight;
mfStretch = static_cast<double>(mnWidth) / rFSD.mnHeight;
// sanity check (e.g. #i66394#, #i66244#, #66537#)
// sanity check (e.g. #i66394#, #i66244#, #i66537#)
if( (mnWidth < 0) || (mfStretch > +64.0) || (mfStretch < -64.0) )
return;