diff options
Diffstat (limited to 'pango/ellipsize.c')
-rw-r--r-- | pango/ellipsize.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pango/ellipsize.c b/pango/ellipsize.c index 39649461..8a7b190a 100644 --- a/pango/ellipsize.c +++ b/pango/ellipsize.c @@ -386,14 +386,13 @@ advance_iterator_to (PangoAttrIterator *iter, { int start, end; - while (TRUE) + do { pango_attr_iterator_range (iter, &start, &end); if (end > new_index) break; - - pango_attr_iterator_next (iter); } + while (pango_attr_iterator_next (iter)); } /* Updates the shaping of the ellipsis if necessary when we move the |