From 32dc0641e17a339c5d429fc5f59c1b086dc96c47 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 27 Jun 2022 12:22:06 -0600 Subject: [PATCH] [glyf] Remove an unnecessary condition --- src/OT/glyf/Glyph.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/OT/glyf/Glyph.hh b/src/OT/glyf/Glyph.hh index 956bb2d27..94806b66b 100644 --- a/src/OT/glyf/Glyph.hh +++ b/src/OT/glyf/Glyph.hh @@ -145,8 +145,7 @@ struct Glyph contour_point_vector_t comp_points; if (unlikely (!glyf_accelerator.glyph_for_gid (item.glyphIndex) .get_points (font, glyf_accelerator, comp_points, - phantom_only, depth + 1) - || comp_points.length < PHANTOM_COUNT)) + phantom_only, depth + 1))) return false; /* Copy phantom points from component if USE_MY_METRICS flag set */