[pango/harfbuzz-ng: 4/57] [HB] Fix buffer enlargement. Ouch
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango/harfbuzz-ng: 4/57] [HB] Fix buffer enlargement. Ouch
- Date: Tue, 4 Aug 2009 20:01:41 +0000 (UTC)
commit 603479e35c849285078238275510c0c89170ff9d
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Jul 28 15:50:42 2009 -0400
[HB] Fix buffer enlargement. Ouch
pango/opentype/hb-buffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/opentype/hb-buffer.c b/pango/opentype/hb-buffer.c
index 31b6c0f..d2ec33d 100644
--- a/pango/opentype/hb-buffer.c
+++ b/pango/opentype/hb-buffer.c
@@ -244,7 +244,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
unsigned int properties;
unsigned int cluster;
- if (buffer->out_string == buffer->in_string &&
+ if (buffer->out_string != buffer->in_string ||
buffer->out_pos + num_out > buffer->in_pos + num_in)
{
hb_buffer_ensure_separate (buffer, buffer->out_pos + num_out);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]