From: duna.oh Date: Thu, 7 Mar 2024 02:06:57 +0000 (+0900) Subject: fix svace issue X-Git-Tag: accepted/tizen/unified/20240307.171905^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=707e32b95127493975b8927b2f1063ad9e2a2da6;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-gesture.git fix svace issue Change-Id: I1594d2c11e3477558969b58891e86384a24f3d1c --- 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;