gtkpango: Count letters properly

The code was using the wrong variable and that then caused assertions
This commit is contained in:
Benjamin Otte
2011-07-07 03:37:52 +02:00
parent 15ab20fdfb
commit a24ec1583b

View 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: