elm_cnp: support text plain mime type for _wl_elm_cnp_selection_get() 60/105960/2
authorTaehyub Kim <taehyub.kim@samsung.com>
Tue, 20 Dec 2016 06:20:27 +0000 (15:20 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 20 Dec 2016 07:09:54 +0000 (23:09 -0800)
Change-Id: I7e2273bd1a74a660739a98fc31bc6fbe2e0a2ea5

src/lib/elm_cnp.c

index f933253f6b2f2b8e22dca014961be65a3794d298..42e8964fe2cbfa8891f868906d91b49185d2d125 100644 (file)
@@ -3114,12 +3114,15 @@ _wl_elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type selection, Elm_Se
         const char *types[10] = {0, };
         int i = -1;
 
-        if ((format & ELM_SEL_FORMAT_MARKUP) ||
-            (format & ELM_SEL_FORMAT_TEXT))
+        if (format & ELM_SEL_FORMAT_MARKUP)
           {
              types[++i] = "application/x-elementary-markup";
-             types[++i] = "text/plain";
+          }
+
+        if (format & ELM_SEL_FORMAT_TEXT)
+          {
              types[++i] = "text/plain;charset=utf-8";
+             types[++i] = "text/plain";
           }
 
         if (format & ELM_SEL_FORMAT_HTML)