From b0b11614e9fb9ecd1faae28b0ed71ac6bf5c1266 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 11 Feb 2016 15:28:55 +0700 Subject: [PATCH] [GPOS] Add harmless recursion in fix_mark_attachment() Will do nothing. Just useful for merging two functions. --- src/hb-ot-layout-gpos-table.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index b349524..038a5c6 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -1579,6 +1579,8 @@ fix_mark_attachment (hb_glyph_position_t *pos, unsigned int i, hb_direction_t di unsigned int j = (int) i + chain; + fix_mark_attachment (pos, j, direction); + pos[i].x_offset += pos[j].x_offset; pos[i].y_offset += pos[j].y_offset; -- 2.7.4