diff --git a/src/OT/glyf/CompositeGlyph.hh b/src/OT/glyf/CompositeGlyph.hh index d9bb06f02..0e5e13fbf 100644 --- a/src/OT/glyf/CompositeGlyph.hh +++ b/src/OT/glyf/CompositeGlyph.hh @@ -160,41 +160,41 @@ struct composite_iter_t : hb_iter_with_fallback_thas_more ()) { current = nullptr; return; } - set_next (&StructAtOffset (current, current_size)); + set_current (&StructAtOffset (current, current_size)); } composite_iter_t __end__ () const { return composite_iter_t (); } bool operator != (const composite_iter_t& o) const { return current != o.current; } - void set_next (const CompositeGlyphChain *composite) + void set_current (__item_t__ current_) { - if (!glyph.check_range (composite, CompositeGlyphChain::min_size)) + if (!glyph.check_range (current_, CompositeGlyphChain::min_size)) { current = nullptr; current_size = 0; return; } - unsigned size = composite->get_size (); - if (!glyph.check_range (composite, size)) + unsigned size = current_->get_size (); + if (!glyph.check_range (current_, size)) { current = nullptr; current_size = 0; return; } - current = composite; + current = current_; current_size = size; }