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 /pango | |
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
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |