From 1a40da4ad1a8896f65a99838d5251613ecc8e350 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 2 Dec 2022 16:13:37 -0700 Subject: [PATCH] [subset-plan] Use add_array instead of add_sorted_array That vector is not declared as sorted. --- src/hb-subset-plan.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index eb88657e1..76666ad17 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -571,7 +571,7 @@ _populate_unicodes_to_retain (const hb_set_t *unicodes, auto &arr = plan->unicode_to_new_gid_list; if (arr.length) { - plan->unicodes->add_sorted_array (&arr.arrayZ->first, arr.length, sizeof (*arr.arrayZ)); + plan->unicodes->add_array (&arr.arrayZ->first, arr.length, sizeof (*arr.arrayZ)); plan->_glyphset_gsub->add_array (&arr.arrayZ->second, arr.length, sizeof (*arr.arrayZ)); } }