]> Pileus Git - ~andy/gtk/commitdiff
gtkpango: Count letters properly
authorBenjamin Otte <otte@redhat.com>
Thu, 7 Jul 2011 01:37:52 +0000 (03:37 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 7 Jul 2011 01:37:52 +0000 (03:37 +0200)
The code was using the wrong variable and that then caused assertions

gtk/gtkpango.c

index 70cd464205e3c23db1304864706e613e6b0281ab..6af3a8337c8d703e4e46ba56181ebbb2e65fd8fe 100644 (file)
@@ -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: