From f8c5c546808c20c195ac3a9998c509943e4b56ee Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 16 Jun 2021 09:54:49 +0200 Subject: [PATCH] Fix for issue 1063 See https://gitlab.freedesktop.org/freetype/freetype/-/issues/1063 for more details on the bug. --- src/autofit/afglobal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/autofit/afglobal.c b/src/autofit/afglobal.c index 554733fc0..aedb74ddd 100644 --- a/src/autofit/afglobal.c +++ b/src/autofit/afglobal.c @@ -478,6 +478,10 @@ { style = (AF_Style)( globals->glyph_styles[gindex] & AF_STYLE_UNASSIGNED ); + /* IMPORTANT: Clear the error code, see + * https://gitlab.freedesktop.org/freetype/freetype/-/issues/1063 + */ + error = 0; goto Again; }