From c036dbd692c2184f71d3dc643e3034af4d96ab2f Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 13 Sep 2015 22:11:52 +0000 Subject: [PATCH] list_box.h: fix ProcessMouse() zero divide git-svn-id: svn://kolibrios.org@5829 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/lib/list_box.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/programs/cmm/lib/list_box.h b/programs/cmm/lib/list_box.h index 1abad2fb16..fc5eb810a7 100644 --- a/programs/cmm/lib/list_box.h +++ b/programs/cmm/lib/list_box.h @@ -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