minor: fix hb_ot_layout_get_ligature_carets
This commit is contained in:
parent
3dd7b2105b
commit
461cd5a158
@ -369,7 +369,7 @@ hb_ot_layout_get_ligature_carets (hb_font_t *font,
|
||||
unsigned int *caret_count /* IN/OUT */,
|
||||
hb_position_t *caret_array /* OUT */)
|
||||
{
|
||||
unsigned int result_caret_count = 0;
|
||||
unsigned int result_caret_count = caret_count ? *caret_count : 0;
|
||||
unsigned int result = font->face->table.GDEF->table->get_lig_carets (font, direction, glyph, start_offset, &result_caret_count, caret_array);
|
||||
if (result)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user