pepper: bugfix in touch that is wrong check condition.
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 22 Oct 2015 02:11:15 +0000 (11:11 +0900)
committerTaekyun Kim <tkq.kim@samsung.com>
Tue, 27 Oct 2015 03:39:41 +0000 (12:39 +0900)
Change-Id: Iabc44583a78ad88c497b7543cb7995c9a642dd65

src/lib/pepper/touch.c

index d5e957310106433923d78f6c21373f9537514aeb..9816e8dcfec460a0b63fec5d6ecf6c7ab9cb023e 100644 (file)
@@ -197,7 +197,7 @@ PEPPER_API void
 pepper_touch_add_point(pepper_touch_t *touch, uint32_t id, double x, double y)
 {
     pepper_touch_point_t *point = get_touch_point(touch, id);
-    PEPPER_CHECK(point, return, "Touch point %d already exist.\n", id);
+    PEPPER_CHECK(!point, return, "Touch point %d already exist.\n", id);
 
     point = calloc(1, sizeof(pepper_touch_point_t));
     PEPPER_CHECK(point, return, "malloc() failed.\n");