diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index dcfdb1861..0e49ccc52 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -565,7 +565,8 @@ struct gvar const hb_array_t points, const hb_array_t end_points) const { - if (unlikely (coord_count != gvar_table->axisCount)) return !coord_count; + if (!coord_count) return true; + if (unlikely (coord_count != gvar_table->axisCount)) return false; const GlyphVarData *var_data = gvar_table->get_glyph_var_data (glyph); if (var_data == &Null (GlyphVarData)) return true;