From fc33200d79aacd007773b8ed6c64486848b8ebc7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 3 Jun 2023 23:29:39 -0600 Subject: [PATCH] [subset/glyf] Avoid a vector copy Oops! --- src/OT/glyf/glyf.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 7b192833f..ba35507e7 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -135,7 +135,7 @@ struct glyf glyf *glyf_prime = c->serializer->start_embed (); if (unlikely (!glyf_prime)) return_trace (false); - bool result = glyf_prime->serialize (c->serializer, glyphs, use_short_loca, c->plan); + bool result = glyf_prime->serialize (c->serializer, hb_iter (glyphs), use_short_loca, c->plan); if (c->plan->normalized_coords && !c->plan->pinned_at_default) _free_compiled_subset_glyphs (glyphs);