mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 23:56:49 +03:00
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;
|
||||
ret = 1;
|
||||
}
|
||||
cur_x_temp = xx - x / item_w;
|
||||
if (cur_x_temp != cur_x) && (cur_x_temp<column_max)
|
||||
{
|
||||
cur_x = cur_x_temp;
|
||||
ret = 1;
|
||||
if (horisontal_selelection)
|
||||
{
|
||||
cur_x_temp = xx - x / item_w;
|
||||
if (cur_x_temp != cur_x) && (cur_x_temp<column_max)
|
||||
{
|
||||
cur_x = cur_x_temp;
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user