diff --git a/src/OT/glyf/VarCompositeGlyph.hh b/src/OT/glyf/VarCompositeGlyph.hh index acdde3f24..2ff0289d3 100644 --- a/src/OT/glyf/VarCompositeGlyph.hh +++ b/src/OT/glyf/VarCompositeGlyph.hh @@ -193,7 +193,7 @@ struct VarCompositeGlyphRecord (flags & GID_IS_24BIT ? 3 : 2) + &StructAfter (numAxes)); - hb_array_t rec_points = points.as_array ().sub_array (points.length - num_points); + contour_point_t *rec_points = points.as_array ().sub_array (points.length - num_points).arrayZ; unsigned count = numAxes; if (flags & AXES_HAVE_VARIATION) @@ -249,7 +249,6 @@ struct VarCompositeGlyphRecord rec_points[0].y = tCenterY; rec_points++; } - assert (!rec_points); return true; }