From: Inhong Han Date: Tue, 4 Dec 2018 06:15:31 +0000 (+0900) Subject: Fix wrong condition check code X-Git-Tag: submit/tizen/20181204.071903~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e8614f07ca80de8b3ed964f9e8b1f67b6091b9a;p=platform%2Fcore%2Fapi%2Finputmethod.git Fix wrong condition check code Change-Id: Iff88d2cb65a0c39a31f6ef3e8287017463412c7a --- diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 5ce480f..fb1a7c6 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -2070,7 +2070,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; } @@ -2083,7 +2083,7 @@ EXPORT_API int ime_update_input_panel_event(ime_event_type_e type, unsigned int retVal = _check_privilege(); if (retVal != IME_ERROR_NONE) return retVal; - g_core.update_input_context(type, value); + g_core.update_input_context((sclu32)type, value); return IME_ERROR_NONE; }