Fix invalid condition check code 77/199977/1
authorInhong Han <inhong1.han@samsung.com>
Mon, 18 Feb 2019 04:41:23 +0000 (13:41 +0900)
committerInhong Han <inhong1.han@samsung.com>
Mon, 18 Feb 2019 04:42:41 +0000 (13:42 +0900)
Change-Id: Ic5766fea141f7763d14bf84fcb787e1a4c08ddfd

src/inputmethod.cpp

index 2d4a47ef374f76abab4ed079a94978d4db50cdc4..4dd4e8210ee7fe5e4fe31efcb8ca16a4c0c6264a 100644 (file)
@@ -2072,7 +2072,7 @@ EXPORT_API int ime_update_input_panel_event(ime_event_type_e type, unsigned int
 {
     ime_error_e retVal = IME_ERROR_NONE;
 
-    if (type < IME_EVENT_TYPE_LANGUAGE && type > IME_EVENT_TYPE_GEOMETRY) {
+    if (type < IME_EVENT_TYPE_LANGUAGE || type > IME_EVENT_TYPE_GEOMETRY) {
         LOGW("IME_ERROR_INVALID_PARAMETER");
         return IME_ERROR_INVALID_PARAMETER;
     }