From: Ebrahim Byagowi Date: Wed, 14 Aug 2019 10:04:55 +0000 (+0430) Subject: Fix caret_count value when AAT is disabled X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ae44645d60fe8271ad18b004434d475eaeb7ad6;p=platform%2Fupstream%2FlibHarfBuzzSharp.git 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. --- diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index d95e5a0..72d65c9 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -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