summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-10-31 17:40:24 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-10-31 17:40:24 +0000
commit2abe0fc819264649a9cd503180ec6b558cf80b20 (patch)
treecb65a28e21a2d2edee57d4b169f64ecbadef956b
parent7889367ae9a339da057e89b69362f557a16429ea (diff)
downloadpango-2abe0fc819264649a9cd503180ec6b558cf80b20.tar.gz
Fix one problem with iteration by chars (Part of #89541, Mariano
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.
-rw-r--r--ChangeLog11
-rw-r--r--ChangeLog.pre-1-1011
-rw-r--r--ChangeLog.pre-1-411
-rw-r--r--ChangeLog.pre-1-611
-rw-r--r--ChangeLog.pre-1-811
-rw-r--r--pango/pango-layout.c8
6 files changed, 59 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 94fa9fa6..9fe9d9be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;