diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-05-16 12:36:31 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-05-16 12:36:31 +0000 |
commit | 58a31d53ab2e58c1cb13ff9b1b72c3b01e977c56 (patch) | |
tree | a687dff60588ae459ea972fa5342758d004d3836 | |
parent | 3b7515cfea11ce5edacdf1aea57f5ff070b2b19a (diff) | |
download | pango-58a31d53ab2e58c1cb13ff9b1b72c3b01e977c56.tar.gz |
Bug 438814 – synaptic crash with pango 1.17.0
2007-05-16 Behdad Esfahbod <behdad@gnome.org>
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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | pango/pango-layout.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2007-05-16 Behdad Esfahbod <behdad@gnome.org> + + 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 <behdad@gnome.org> * modules/hebrew/hebrew-fc.c (hebrew_engine_shape): diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 23378b9d..df2b7698 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. */ |