fix box crash

SVN revision: 78575
This commit is contained in:
Mike Blumenkrantz 2012-10-28 08:40:03 +00:00
parent 0bb52eb9ed
commit a200832b4f
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ _e_box_item_nth_get(E_Smart_Data *sd, unsigned int n)
unsigned int x;
E_Box_Item *bi;
if (!sd->items) return NULL;
if (n > sd->item_count / 2)
{
x = sd->item_count - 1;