From 36c76c27c6078d9e494f27ce04b0160c906bc444 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Wed, 17 Aug 2022 17:30:21 +0000 Subject: [PATCH] [repacker] when clearing links in MarkArray, also clear parents of the children. --- src/graph/markbasepos-graph.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graph/markbasepos-graph.hh b/src/graph/markbasepos-graph.hh index 9326de9cd..86ed3ca6b 100644 --- a/src/graph/markbasepos-graph.hh +++ b/src/graph/markbasepos-graph.hh @@ -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;