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:
parent
a5aa67b9f2
commit
3ae44645d6
|
@ -375,10 +375,14 @@ hb_ot_layout_get_ligature_carets (hb_font_t *font,
|
||||||
{
|
{
|
||||||
if (caret_count) *caret_count = result_caret_count;
|
if (caret_count) *caret_count = result_caret_count;
|
||||||
}
|
}
|
||||||
#ifndef HB_NO_AAT
|
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
#ifndef HB_NO_AAT
|
||||||
result = font->face->table.lcar->get_lig_carets (font, direction, glyph, start_offset, caret_count, caret_array);
|
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
|
#endif
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue