Fixed bug mime_type_cb is called whenever the ISE is shown 63/160863/1
authorInHong Han <inhong1.han@samsung.com>
Mon, 20 Nov 2017 02:54:54 +0000 (11:54 +0900)
committerInHong Han <inhong1.han@samsung.com>
Mon, 20 Nov 2017 09:22:05 +0000 (09:22 +0000)
Change-Id: I1cce904e69729e6d3f8b2e3752a120e9ebad191f

src/sclconnection-isf.cpp

index 9c3c48c..a7bcd4e 100644 (file)
@@ -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));