[util] Unbreak --show-text / --show-unicode

This commit is contained in:
Behdad Esfahbod 2013-04-17 23:49:54 -04:00
parent 0dc3a4e034
commit e4046080c5
1 changed files with 2 additions and 2 deletions

View File

@ -51,11 +51,11 @@ struct shape_consumer_t
{
output.new_line ();
output.consume_text (buffer, text, text_len, shaper.utf8_clusters);
for (unsigned int n = shaper.num_iterations; n; n--)
{
shaper.populate_buffer (buffer, text, text_len, text_before, text_after);
if (n == 1)
output.consume_text (buffer, text, text_len, shaper.utf8_clusters);
if (!shaper.shape (font, buffer)) {
failed = true;
hb_buffer_set_length (buffer, 0);