summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2015-04-06 13:21:26 -0700
committerBehdad Esfahbod <behdad@behdad.org>2015-04-06 13:21:26 -0700
commitb838c04243ab840330b3e47413bda16bf6fd3e01 (patch)
tree4c271a9d19d2cbe864afc1e4aefc09868cdea04c /pango/break.c
parente2b89006dd2aae60805712a24534586ccdcc8d06 (diff)
downloadpango-b838c04243ab840330b3e47413bda16bf6fd3e01.tar.gz
Fix regression after 137832fa931e875b900dedd1c8909b46d1f7e8ad
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/break.c b/pango/break.c
index 5d28e413..67839807 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1803,7 +1803,6 @@ tailor_segment (const char *range_start,
chars_in_range = pango_utf8_strlen (range_start, range_end - range_start);
-
if (tailor_break (range_start,
range_end - range_start,
analysis,
@@ -1864,7 +1863,7 @@ pango_get_log_attrs (const char *text,
chars_broken = 0;
_pango_script_iter_init (&iter, text, length);
- while (pango_script_iter_next (&iter))
+ do
{
const char *run_start, *run_end;
PangoScript script;
@@ -1875,6 +1874,7 @@ pango_get_log_attrs (const char *text,
chars_broken += tailor_segment (run_start, run_end, chars_broken, &analysis, log_attrs);
}
+ while (pango_script_iter_next (&iter));
_pango_script_iter_fini (&iter);
if (chars_broken + 1 > attrs_len)