Merge pull request #2415 from pipcet/fix-ligature-carets

minor: fix hb_ot_layout_get_ligature_carets
This commit is contained in:
Ebrahim Byagowi 2020-05-21 00:10:33 +04:30 committed by GitHub
commit 00aba82a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{