From f6a23a0b9171958f76c1d0473b09fc08d2b3a0d0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 27 Oct 2010 17:01:03 -0400 Subject: [PATCH] More removal of lig-id code from buffer --- src/hb-buffer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 7bdee9fdd..a75b8e9f0 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -248,11 +248,11 @@ hb_buffer_add_glyph (hb_buffer_t *buffer, if (unlikely (!_hb_buffer_ensure (buffer, buffer->len + 1))) return; glyph = &buffer->info[buffer->len]; + + memset (glyph, 0, sizeof (*glyph)); glyph->codepoint = codepoint; glyph->mask = mask; glyph->cluster = cluster; - glyph->component() = 0; - glyph->lig_id() = 0; glyph->gproperty() = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN; buffer->len++;