[CompositeGlyph] Micro-optimize

pull/4150/merge
Behdad Esfahbod 1 year ago
parent e9d74d6bb3
commit 75101802a1
  1. 2
      src/OT/glyf/CompositeGlyph.hh

@ -132,7 +132,7 @@ struct CompositeGlyphRecord
contour_point_t trans;
get_transformation (matrix, trans);
points.alloc (points.length + 4); // For phantom points
if (unlikely (!points.resize (points.length + 1))) return false;
if (unlikely (!points.resize (points.length + 1, false))) return false;
points.arrayZ[points.length - 1] = trans;
return true;
}

Loading…
Cancel
Save