diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-11-12 21:01:18 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-11-14 15:33:26 -0500 |
commit | 5baab0f520190b80103f3e95be65e6c38e57b9d5 (patch) | |
tree | 104160e716b25c0f344dd9780d9b80529847c525 | |
parent | 5de5c03385d2c4d3445c268e416ac6cd760a2015 (diff) | |
download | pango-5baab0f520190b80103f3e95be65e6c38e57b9d5.tar.gz |
layout: Cosmetics
-rw-r--r-- | pango/pango-layout.c | 11 |
1 files 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; |