diff --git a/src/graph/pairpos-graph.hh b/src/graph/pairpos-graph.hh index ed1ba0d55..c6446cf33 100644 --- a/src/graph/pairpos-graph.hh +++ b/src/graph/pairpos-graph.hh @@ -86,14 +86,24 @@ struct PairPosFormat1 : public OT::Layout::GPOS_impl::PairPosFormat1_3= old_count) + return; + + pairSet.len = count; + c.graph.vertices_[this_index].obj.tail -= (count - old_count) * SmallTypes::size; + + // TODO } @@ -141,8 +151,8 @@ struct PairPosFormat1 : public OT::Layout::GPOS_impl::PairPosFormat1_3 coverage_copy = serializer.copy_blob (); - memcpy (coverage_prime_obj.head, + memcpy (coverage_prime_vertex.obj.head, coverage_copy.get (), coverage_copy.get_length ()); - coverage_prime_obj.tail = coverage_prime_obj.head + coverage_copy.get_length (); - // TODO: add coverage as a child + coverage_prime_vertex.obj.tail = coverage_prime_vertex.obj.head + coverage_copy.get_length (); + + auto* coverage_link = c.graph.vertices_[pair_pos_prime_id].obj.real_links.push (); + coverage_link->width = SmallTypes::size; + coverage_link->objidx = coverage_prime_id; + coverage_link->position = 2; + coverage_prime_vertex.parents.push (pair_pos_prime_id); return pair_pos_prime_id; }