warning--

This commit is contained in:
Carsten Haitzler 2014-03-24 16:46:51 +09:00
parent 0136cb376f
commit 46bfe985d9
1 changed files with 7 additions and 5 deletions

View File

@ -347,16 +347,18 @@ _gengrid_self_focus_item_get(
if (sd->horizontal)
{
if ((cy > (items_row - 1)) || (cx > (columns - 1))) return EINA_FALSE;
if ((cy > (int)(items_row - 1)) ||
(cx > (int)(columns - 1))) return EINA_FALSE;
new_position = items_row * cx + cy;
}
else
{
if ((cx > (items_col - 1)) || (cy > (rows - 1))) return EINA_FALSE;
{
if ((cx > (int)(items_col - 1)) ||
(cy > (int)(rows - 1))) return EINA_FALSE;
new_position = cx + items_col * cy;
}
}
if (new_position > (items_count - 1)) return EINA_FALSE;
if (new_position > (int)(items_count - 1)) return EINA_FALSE;
focused_pos++;
new_position++;