From 4e0bddb7fea3ada6dc1ba05ed2fab9f2b813640d Mon Sep 17 00:00:00 2001 From: Koji Ishii Date: Wed, 19 Aug 2020 20:49:10 +0900 Subject: [PATCH] get_baseline --- src/hb-ot-layout-base-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-base-table.hh b/src/hb-ot-layout-base-table.hh index 02fe14fa0..c2c2b2b7a 100644 --- a/src/hb-ot-layout-base-table.hh +++ b/src/hb-ot-layout-base-table.hh @@ -384,7 +384,7 @@ struct Axis if (likely (coord)) { unsigned int tag_index = 0; - (this+baseTagList).bfind (baseline_tag, &tag_index); + if (!(this+baseTagList).bfind (baseline_tag, &tag_index)) return false; *coord = &base_script.get_base_coord (tag_index); }