From 58a31d53ab2e58c1cb13ff9b1b72c3b01e977c56 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 16 May 2007 12:36:31 +0000 Subject: [PATCH] =?utf8?q?Bug=20438814=20=E2=80=93=20synaptic=20crash=20wi?= =?utf8?q?th=20pango=201.17.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2007-05-16 Behdad Esfahbod Bug 438814 – synaptic crash with pango 1.17.0 * pango/pango-layout.c (process_item): Make sure we find some break point even if overflowing the line. svn path=/trunk/; revision=2311 --- ChangeLog | 7 +++++++ pango/pango-layout.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6d2b094..7a4a6e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-05-16 Behdad Esfahbod + + Bug 438814 – synaptic crash with pango 1.17.0 + + * pango/pango-layout.c (process_item): Make sure we find some break + point even if overflowing the line. + 2007-05-15 Behdad Esfahbod * modules/hebrew/hebrew-fc.c (hebrew_engine_shape): diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 23378b9..df2b769 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -3224,7 +3224,7 @@ process_item (PangoLayout *layout, width = 0; for (num_chars = 0; num_chars < item->num_chars; num_chars++) { - if (width > state->remaining_width) + if (width > state->remaining_width && break_num_chars < item->num_chars) break; /* If there are no previous runs we have to take care to grab at least one char. */ -- 2.7.4