summaryrefslogtreecommitdiff
path: root/gtk/gtkpango.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-07-07 03:37:52 +0200
committerBenjamin Otte <otte@redhat.com>2011-07-07 03:37:52 +0200
commita24ec1583b734a7edf2b333ab7f1c6deff5f1225 (patch)
treea240b45f9a27c092880882c3ec9962fcdc44b9bc /gtk/gtkpango.c
parent15ab20fdfb5b148e0626d3f81cd22210951b724e (diff)
downloadgtk+-a24ec1583b734a7edf2b333ab7f1c6deff5f1225.tar.gz
gtkpango: Count letters properly
The code was using the wrong variable and that then caused assertions
Diffstat (limited to 'gtk/gtkpango.c')
-rw-r--r--gtk/gtkpango.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkpango.c b/gtk/gtkpango.c
index 70cd464205..6af3a8337c 100644
--- a/gtk/gtkpango.c
+++ b/gtk/gtkpango.c
@@ -1235,7 +1235,7 @@ _gtk_pango_get_text_at (PangoLayout *layout,
switch (boundary_type)
{
case ATK_TEXT_BOUNDARY_CHAR:
- start = _gtk_pango_move_chars (layout, start, 1);
+ end = _gtk_pango_move_chars (layout, end, 1);
break;
case ATK_TEXT_BOUNDARY_WORD_START: