diff --git a/src/OT/glyf/SimpleGlyph.hh b/src/OT/glyf/SimpleGlyph.hh index 59547a3b1..183e7caf2 100644 --- a/src/OT/glyf/SimpleGlyph.hh +++ b/src/OT/glyf/SimpleGlyph.hh @@ -191,11 +191,9 @@ struct SimpleGlyph unsigned int num_points = endPtsOfContours[num_contours - 1] + 1; points_.alloc (num_points + 4, true); // Allocate for phantom points, to avoid a possible copy - if (!points_.resize (num_points, false)) return false; + if (!points_.resize (num_points)) return false; if (phantom_only) return true; - for (unsigned i = 0; i < points_.length; i++) - points_.arrayZ[i].is_end_point = false; for (int i = 0; i < num_contours; i++) points_[endPtsOfContours[i]].is_end_point = true;