Fix caret_count value when AAT is disabled

Set caret_count to zero as that is what we want to happen inside lcar when
there is no result.
This commit is contained in:
Ebrahim Byagowi 2019-08-14 14:34:55 +04:30
parent a5aa67b9f2
commit 3ae44645d6
1 changed files with 5 additions and 1 deletions

View File

@ -375,10 +375,14 @@ hb_ot_layout_get_ligature_carets (hb_font_t *font,
{
if (caret_count) *caret_count = result_caret_count;
}
#ifndef HB_NO_AAT
else
{
#ifndef HB_NO_AAT
result = font->face->table.lcar->get_lig_carets (font, direction, glyph, start_offset, caret_count, caret_array);
#else
if (caret_count) *caret_count = 0;
#endif
}
return result;
}
#endif