forked from enlightenment/enlightenment
parent
0bb52eb9ed
commit
a200832b4f
|
@ -79,6 +79,7 @@ _e_box_item_nth_get(E_Smart_Data *sd, unsigned int n)
|
||||||
unsigned int x;
|
unsigned int x;
|
||||||
E_Box_Item *bi;
|
E_Box_Item *bi;
|
||||||
|
|
||||||
|
if (!sd->items) return NULL;
|
||||||
if (n > sd->item_count / 2)
|
if (n > sd->item_count / 2)
|
||||||
{
|
{
|
||||||
x = sd->item_count - 1;
|
x = sd->item_count - 1;
|
||||||
|
|
Loading…
Reference in New Issue