This commit is contained in:
Behdad Esfahbod 2012-06-09 00:23:24 -04:00
parent 7b84c536c1
commit 44b8ee0c90
2 changed files with 3 additions and 2 deletions

View File

@ -1371,7 +1371,8 @@ struct PosLookup : Lookup
if (!_hb_ot_layout_check_glyph_property (c->face, &c->buffer->cur(), c->lookup_props, &c->property))
return false;
for (unsigned int i = 0; i < get_subtable_count (); i++)
unsigned int count = get_subtable_count ();
for (unsigned int i = 0; i < count; i++)
if (get_subtable (i).apply (c, lookup_type))
return true;

View File

@ -147,7 +147,7 @@ _hb_ot_layout_check_glyph_property (hb_face_t *face,
unsigned int property;
property = _hb_ot_layout_get_glyph_property (face, ginfo);
(void) (property_out && (*property_out = property));
*property_out = property;
return _hb_ot_layout_match_properties (face, ginfo->codepoint, property, lookup_props);
}