From 3eacfaace4f1d875a1f233d3b0f86c36668834f8 Mon Sep 17 00:00:00 2001 From: "duna.oh" Date: Thu, 7 Mar 2024 11:06:57 +0900 Subject: [PATCH] fix svace issue Change-Id: I1594d2c11e3477558969b58891e86384a24f3d1c --- src/e_mod_gesture_events.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/e_mod_gesture_events.c b/src/e_mod_gesture_events.c index 4656be8..3c6ee48 100644 --- a/src/e_mod_gesture_events.c +++ b/src/e_mod_gesture_events.c @@ -156,8 +156,11 @@ _e_gesture_util_center_axis_get(int num_finger, int *x, int *y) cnt++; } - calc_x = (int)(calc_x / cnt); - calc_y = (int)(calc_y / cnt); + if (cnt > 1) + { + calc_x = (int)(calc_x / cnt); + calc_y = (int)(calc_y / cnt); + } *x = calc_x; *y = calc_y; -- 2.7.4