diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | pango/break.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de> + + Bug 472891 – Bad consistency check in pango_get_log_attrs + + * pango/break.c: Invert the consistency check. + 2007-08-29 Behdad Esfahbod <behdad@gnome.org> Bug 302952 – The placement of a diacritic marks for an arabic ligature diff --git a/pango/break.c b/pango/break.c index 2ab71efe..e079a113 100644 --- a/pango/break.c +++ b/pango/break.c @@ -1734,7 +1734,7 @@ pango_get_log_attrs (const char *text, chars_broken += tailor_segment (range_start, range_end, range_engine, chars_broken, &analysis, log_attrs); - if (chars_broken + 1 < attrs_len) + if (chars_broken + 1 > attrs_len) g_warning ("pango_get_log_attrs: attrs_len should have been at least %d, but was %d. Expect corrupted memory.", chars_broken + 1, attrs_len); |