[repacker] when clearing links in MarkArray, also clear parents of the children.

This commit is contained in:
Garret Rieger 2022-08-17 17:30:21 +00:00
parent 8c3db8bdfd
commit 36c76c27c6
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,8 @@ struct MarkArray : public OT::Layout::GPOS_impl::MarkArray
unsigned new_class_count)
{
auto& o = c.graph.vertices_[this_index].obj;
for (const auto& link : o.real_links)
c.graph.vertices_[link.objidx].remove_parent (this_index);
o.real_links.reset ();
unsigned new_index = 0;