Fix duplicate check in hb_ot_rotate chars

Fixes #2099. Fix indentation in mirroring section as well.
This commit is contained in:
Dominik Röttsches authored and Ebrahim Byagowi committed 2020-01-13 18:20:12 +03:30
1 parent dc03a993d0
commit 66dfd605b5
1 file changed
-1
-1
View File
@@ -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;
}