From 66dfd605b5b9aaf74ff806ba1719ca09a1003909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20R=C3=B6ttsches?= Date: Mon, 13 Jan 2020 15:50:27 +0200 Subject: [PATCH] Fix duplicate check in hb_ot_rotate chars Fixes #2099. Fix indentation in mirroring section as well. --- src/hb-ot-shape.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 0c259ea6d..874338791 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -652,7 +652,6 @@ hb_ot_rotate_chars (const hb_ot_shape_context_t *c) { for (unsigned int i = 0; i < count; i++) { hb_codepoint_t codepoint = hb_vert_char_for (info[i].codepoint); - if (c->font->has_glyph (codepoint)) if (unlikely (codepoint != info[i].codepoint && c->font->has_glyph (codepoint))) info[i].codepoint = codepoint; }