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 2020-01-13 15:50:27 +02:00 committed by Ebrahim Byagowi
parent dc03a993d0
commit 66dfd605b5

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;
}