diff options
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 11 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 11 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 11 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 11 | ||||
-rw-r--r-- | pango/pango-layout.c | 8 |
6 files changed, 59 insertions, 4 deletions
@@ -1,3 +1,14 @@ +Fri Oct 31 12:32:38 2003 Owen Taylor <otaylor@redhat.com> + + Fix one problem with iteration by chars (Part of + #89541, Mariano Suárez-Alvarez) + + * Pango/pango-layout.c (cluster_end_index): Fix to + be item relative, like iter->cluster_index. + + * pango/pango-layout.c (pango_layout_iter_next_char): + Adapt. + Fri Oct 24 00:09:17 2003 Owen Taylor <otaylor@redhat.com> * === Released 1.3.0 === diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 94fa9fa6..9fe9d9be 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,14 @@ +Fri Oct 31 12:32:38 2003 Owen Taylor <otaylor@redhat.com> + + Fix one problem with iteration by chars (Part of + #89541, Mariano Suárez-Alvarez) + + * Pango/pango-layout.c (cluster_end_index): Fix to + be item relative, like iter->cluster_index. + + * pango/pango-layout.c (pango_layout_iter_next_char): + Adapt. + Fri Oct 24 00:09:17 2003 Owen Taylor <otaylor@redhat.com> * === Released 1.3.0 === diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index 94fa9fa6..9fe9d9be 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,14 @@ +Fri Oct 31 12:32:38 2003 Owen Taylor <otaylor@redhat.com> + + Fix one problem with iteration by chars (Part of + #89541, Mariano Suárez-Alvarez) + + * Pango/pango-layout.c (cluster_end_index): Fix to + be item relative, like iter->cluster_index. + + * pango/pango-layout.c (pango_layout_iter_next_char): + Adapt. + Fri Oct 24 00:09:17 2003 Owen Taylor <otaylor@redhat.com> * === Released 1.3.0 === diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index 94fa9fa6..9fe9d9be 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,14 @@ +Fri Oct 31 12:32:38 2003 Owen Taylor <otaylor@redhat.com> + + Fix one problem with iteration by chars (Part of + #89541, Mariano Suárez-Alvarez) + + * Pango/pango-layout.c (cluster_end_index): Fix to + be item relative, like iter->cluster_index. + + * pango/pango-layout.c (pango_layout_iter_next_char): + Adapt. + Fri Oct 24 00:09:17 2003 Owen Taylor <otaylor@redhat.com> * === Released 1.3.0 === diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 94fa9fa6..9fe9d9be 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,14 @@ +Fri Oct 31 12:32:38 2003 Owen Taylor <otaylor@redhat.com> + + Fix one problem with iteration by chars (Part of + #89541, Mariano Suárez-Alvarez) + + * Pango/pango-layout.c (cluster_end_index): Fix to + be item relative, like iter->cluster_index. + + * pango/pango-layout.c (pango_layout_iter_next_char): + Adapt. + Fri Oct 24 00:09:17 2003 Owen Taylor <otaylor@redhat.com> * === Released 1.3.0 === diff --git a/pango/pango-layout.c b/pango/pango-layout.c index e620967c..0d5c501a 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -3954,13 +3954,13 @@ cluster_end_index (PangoLayoutIter *iter) { /* Use the left or right end of the run */ if (iter->ltr) - return iter->run->item->offset + iter->run->item->length; + return iter->run->item->length; else - return iter->run->item->offset; + return 0; } else { - return iter->run->item->offset + gs->log_clusters[iter->next_cluster_start]; + return gs->log_clusters[iter->next_cluster_start]; } } @@ -4213,7 +4213,7 @@ pango_layout_iter_next_char (PangoLayoutIter *iter) gs = iter->run->glyphs; - next_cluster_index = cluster_end_index (iter); + next_cluster_index = iter->run->item->offset + cluster_end_index (iter); oldp = iter->layout->text + iter->index; |