summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-07-28 15:50:42 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-07-28 15:50:42 -0400
commit603479e35c849285078238275510c0c89170ff9d (patch)
tree51f41365305da61cd18443da9d67607bc2e2f347
parent59f8868cf32691cce37060b30c3d16503a003df7 (diff)
downloadpango-603479e35c849285078238275510c0c89170ff9d.tar.gz
[HB] Fix buffer enlargement. Ouch
-rw-r--r--pango/opentype/hb-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/opentype/hb-buffer.c b/pango/opentype/hb-buffer.c
index 31b6c0fb..d2ec33dc 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);