diff --git a/src/OT/glyf/Glyph.hh b/src/OT/glyf/Glyph.hh index 5d9c11c82..503112270 100644 --- a/src/OT/glyf/Glyph.hh +++ b/src/OT/glyf/Glyph.hh @@ -293,8 +293,6 @@ struct Glyph for (unsigned int i = 0; i < PHANTOM_COUNT; i++) phantoms[i] = comp_points[comp_points.length - PHANTOM_COUNT + i]; - comp_points.resize (comp_points.length - PHANTOM_COUNT); - /* Apply component transformation & translation */ item.transform_points (comp_points); @@ -315,7 +313,7 @@ struct Glyph } } - all_points.extend (comp_points); + all_points.extend (comp_points.sub_array (0, comp_points.length - PHANTOM_COUNT)); comp_index++; }