summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-04-06 23:14:03 +0100
committerAndy Williams <andy@andywilliams.me>2017-04-06 23:14:03 +0100
commit595fc25f3f28aef08c96939b220cb13f6bb1d91b (patch)
tree0ba9958d856e7ba9fdcc1c48ecf8f2b1f4ba3533
parent9610d4aaa6b15037bcb595d54bf9a6fa45bd2740 (diff)
downloadefl-595fc25f3f28aef08c96939b220cb13f6bb1d91b.tar.gz
elm_code: fix copy/paste bug that slipped through
-rw-r--r--src/lib/elementary/elm_code_widget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index 2205630777..fa78a7922c 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -672,13 +672,13 @@ _elm_code_widget_position_at_coordinates_get(Eo *obj, Elm_Code_Widget_Data *pd,
number = guess;
// unfortunately EINA_LIST_REVERSE_FOREACH skips to the end of the list...
- for (item = eina_list_nth_list(pd->grids, number), grid = eina_list_data_get(item);
+ for (item = eina_list_nth_list(pd->grids, number - 1), grid = eina_list_data_get(item);
number > 1 && item;
item = eina_list_prev(item), grid = eina_list_data_get(item))
{
evas_object_geometry_get(grid, NULL, &rowy, NULL, NULL);
- if (rowy + sy - oy - 1<= y)
+ if (rowy + sy - oy - 1 <= y)
break;
number--;