From: InHong Han Date: Mon, 20 Nov 2017 02:54:54 +0000 (+0900) Subject: Fixed bug mime_type_cb is called whenever the ISE is shown X-Git-Tag: submit/tizen/20171124.112318~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e8f4149bd6f15c067dd58cf29009c3300b9aec0;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Fixed bug mime_type_cb is called whenever the ISE is shown Change-Id: I1cce904e69729e6d3f8b2e3752a120e9ebad191f --- diff --git a/src/sclconnection-isf.cpp b/src/sclconnection-isf.cpp index 9c3c48c..a7bcd4e 100644 --- a/src/sclconnection-isf.cpp +++ b/src/sclconnection-isf.cpp @@ -180,7 +180,7 @@ static void slot_ise_show(const scim::HelperAgent *agent, int ic, char *buf, siz callback->on_set_imdata(imdata, ise_context.imdata_size); } - if (len >= (sizeof(Ise_Context) + ise_context.imdata_size)) + if (len > (sizeof(Ise_Context) + ise_context.imdata_size)) callback->on_set_mime_type(buf + sizeof(ise_context) + ise_context.imdata_size); } else { LOGD("\n-=-= WARNING - buf %p len %d size %d \n", buf, len, sizeof(ise_context));