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,6 +108,8 @@ int llist::ProcessMouse(int xx, yy)
|
|||||||
cur_y = cur_y_temp;
|
cur_y = cur_y_temp;
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
|
if (horisontal_selelection)
|
||||||
|
{
|
||||||
cur_x_temp = xx - x / item_w;
|
cur_x_temp = xx - x / item_w;
|
||||||
if (cur_x_temp != cur_x) && (cur_x_temp<column_max)
|
if (cur_x_temp != cur_x) && (cur_x_temp<column_max)
|
||||||
{
|
{
|
||||||
@ -115,6 +117,7 @@ int llist::ProcessMouse(int xx, yy)
|
|||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user