From 5baab0f520190b80103f3e95be65e6c38e57b9d5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 12 Nov 2021 21:01:18 -0500 Subject: layout: Cosmetics --- pango/pango-layout.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 13e974d2..553bcb70 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -3974,9 +3974,8 @@ process_item (PangoLayout *layout, if (layout->wrap == PANGO_WRAP_WORD_CHAR && force_fit && break_width + break_extra_width > state->remaining_width && !retrying_with_char_breaks) { retrying_with_char_breaks = TRUE; - num_chars = item->num_chars; width = orig_width; - break_num_chars = num_chars; + break_num_chars = item->num_chars; break_width = width; goto retry_break; } @@ -4036,9 +4035,8 @@ process_item (PangoLayout *layout, break_disabled[break_num_chars] = TRUE; - num_chars = item->num_chars; width = orig_width; - break_num_chars = num_chars; + break_num_chars = item->num_chars; break_width = width; goto retry_break; @@ -4262,8 +4260,9 @@ process_line (PangoLayout *layout, case BREAK_LINE_SEPARATOR: state->items = g_list_delete_link (state->items, state->items); state->start_offset += old_num_chars; - /* A line-separate is just a forced break. Set wrapped, so we do - * justification */ + /* A line-separator is just a forced break. + * Set wrapped, so we do justification + */ wrapped = TRUE; goto done; -- cgit v1.2.1