mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
auto-completed the wrong gids_to_retain
This commit is contained in:
1 parent
1330edc4fe
commit
afb1da3a18
1 file changed
+2
-2
@@ -62,8 +62,8 @@ hb_subset_plan_new_gid_for_old_id (hb_subset_plan_t *plan,
|
||||
hb_codepoint_t *new_gid)
|
||||
{
|
||||
// the index in old_gids is the new gid; only up to codepoints.len are valid
|
||||
for (unsigned int i = 0; i < plan->gids_to_retain_sorted.len; i++) {
|
||||
if (plan->gids_to_retain_sorted[i] == old_gid) {
|
||||
for (unsigned int i = 0; i < plan->gids_to_retain.len; i++) {
|
||||
if (plan->gids_to_retain[i] == old_gid) {
|
||||
// +1: assign new gids from 1..N; 0 is special
|
||||
*new_gid = i + 1;
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user