diff --git a/src/graph/graph.hh b/src/graph/graph.hh index 839474a41..9ec9f22c7 100644 --- a/src/graph/graph.hh +++ b/src/graph/graph.hh @@ -1008,6 +1008,9 @@ public: if (unlikely (root_idx >= vertices_.length)) return Err(OUT_OF_BOUNDS); subgraph.set (root_idx, wide_parents (root_idx, parents)); + } + for (unsigned root_idx : roots) + { TRY (find_subgraph (root_idx, subgraph)); } TRY (graph_result_t::from (subgraph, ALLOCATION_FAILURE)); diff --git a/src/hb-repacker.hh b/src/hb-repacker.hh index 3ddc188d4..d7903a897 100644 --- a/src/hb-repacker.hh +++ b/src/hb-repacker.hh @@ -236,9 +236,7 @@ graph_result_t _try_isolating_subgraphs (const hb_vector_t