forked from KolibriOS/kolibrios
list_box.h: fix ProcessMouse() zero divide
git-svn-id: svn://kolibrios.org@5829 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
79bee04258
commit
c036dbd692
@ -108,11 +108,14 @@ int llist::ProcessMouse(int xx, yy)
|
|||||||
cur_y = cur_y_temp;
|
cur_y = cur_y_temp;
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
cur_x_temp = xx - x / item_w;
|
if (horisontal_selelection)
|
||||||
if (cur_x_temp != cur_x) && (cur_x_temp<column_max)
|
{
|
||||||
{
|
cur_x_temp = xx - x / item_w;
|
||||||
cur_x = cur_x_temp;
|
if (cur_x_temp != cur_x) && (cur_x_temp<column_max)
|
||||||
ret = 1;
|
{
|
||||||
|
cur_x = cur_x_temp;
|
||||||
|
ret = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user