未验证 提交 87454c44 编写于 作者: E Ebrahim Byagowi 提交者: GitHub

[base] fix logic

上级 69655d5b
...@@ -450,11 +450,11 @@ struct BASE ...@@ -450,11 +450,11 @@ struct BASE
hb_position_t *base) const hb_position_t *base) const
{ {
const BaseCoord *base_coord = nullptr; const BaseCoord *base_coord = nullptr;
if (unlikely (!get_axis (direction).get_baseline (baseline, script_tag, language_tag, &base_coord) && if (unlikely (!get_axis (direction).get_baseline (baseline, script_tag, language_tag, &base_coord) ||
base_coord && !base_coord->has_data ())) !base_coord || !base_coord->has_data ()))
return false; return false;
if (likely (base && base_coord)) if (likely (base))
*base = base_coord->get_coord (font, get_var_store (), direction); *base = base_coord->get_coord (font, get_var_store (), direction);
return true; return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册