From c7b22b96cc64c81248362a70f2d60d93ee520f2d Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sun, 28 Jul 2019 19:46:57 +0430 Subject: [PATCH] [base] minor --- src/hb-ot-layout-base-table.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-ot-layout-base-table.hh b/src/hb-ot-layout-base-table.hh index ee3aad961..d8b5acc12 100644 --- a/src/hb-ot-layout-base-table.hh +++ b/src/hb-ot-layout-base-table.hh @@ -351,10 +351,8 @@ struct BaseScriptList const BaseScript &get_base_script (hb_tag_t script) const { const BaseScriptRecord *record = &baseScriptRecords.bsearch (script); - /* TODO: Or client should handle fallback? */ if (!record->has_data ()) record = &baseScriptRecords.bsearch (HB_TAG ('D','F','L','T')); - - return record ? record->get_base_script (this) : Null (BaseScript); + return record->has_data () ? record->get_base_script (this) : Null (BaseScript); } bool sanitize (hb_sanitize_context_t *c) const