From a24ec1583b734a7edf2b333ab7f1c6deff5f1225 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 7 Jul 2011 03:37:52 +0200 Subject: [PATCH] gtkpango: Count letters properly The code was using the wrong variable and that then caused assertions --- gtk/gtkpango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkpango.c b/gtk/gtkpango.c index 70cd46420..6af3a8337 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: -- 2.43.2