[pango] Bug 700577 - Support invalid UTF-8 chars in pango_find_paragraph_boundary()



commit 6c16dfe8ad012a2551d0270a0325574e9ce3cef7
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon May 27 17:24:04 2013 -0400

    Bug 700577 - Support invalid UTF-8 chars in pango_find_paragraph_boundary()

 pango/break.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/break.c b/pango/break.c
index abdf45b..5f3c339 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1747,7 +1747,7 @@ pango_find_paragraph_boundary (const gchar *text,
 
   prev_sep = 0;
 
-  while (p != end)
+  while (p < end)
     {
       if (prev_sep == '\n' ||
          prev_sep == PARAGRAPH_SEPARATOR_STRING[0])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]