From 62299826f4905e080b9497bce335e093b287494e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 23 Jan 2014 14:11:03 -0500 Subject: [PATCH] Fix typo in _hb_buffer_serialize_glyphs_text() Fixes https://github.com/behdad/harfbuzz/pull/17 --- src/hb-buffer-serialize.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-buffer-serialize.cc b/src/hb-buffer-serialize.cc index 4541db23b..263bc81dc 100644 --- a/src/hb-buffer-serialize.cc +++ b/src/hb-buffer-serialize.cc @@ -204,7 +204,7 @@ _hb_buffer_serialize_glyphs_text (hb_buffer_t *buffer, *p++ = '+'; p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%d", pos[i].x_advance)); - if (pos->y_advance) + if (pos[i].y_advance) p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",%d", pos[i].y_advance)); }