[util] Move variable closer to use

This commit is contained in:
Behdad Esfahbod 2022-11-13 17:06:58 -07:00
parent 630f09c8b6
commit 8f15fb1252
1 changed files with 2 additions and 2 deletions

View File

@ -61,11 +61,11 @@ struct shape_consumer_t : shape_options_t
for (unsigned int n = num_iterations; n; n--)
{
const char *error = nullptr;
populate_buffer (buffer, text, text_len, app.text_before, app.text_after);
if (n == 1)
output.consume_text (buffer, text, text_len, utf8_clusters);
const char *error = nullptr;
if (!shape (app.font, buffer, &error))
{
failed = true;