fix private_indices vs shared_indices

This commit is contained in:
Michiharu Ariza 2019-04-02 10:07:43 -07:00
parent dce9e5e622
commit 2c31652c8a
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ struct gvar
if (iterator.current_tuple->has_private_points () &&
!GlyphVarData::unpack_points (p, private_indices, checker))
return false;
const hb_array_t<unsigned int> &indices = shared_indices.length? shared_indices: private_indices;
const hb_array_t<unsigned int> &indices = private_indices.length? private_indices: shared_indices;
bool apply_to_all = (indices.length == 0);
unsigned int num_deltas = apply_to_all? points.length: indices.length;