Bugfix: a converting problem using elm_selection_get with ELM_SEL_FORMAT_HTML
authordeasung.kim <deasung.kim@samsung.com>
Tue, 29 Nov 2011 02:52:35 +0000 (11:52 +0900)
committerdeasung.kim <deasung.kim@samsung.com>
Tue, 29 Nov 2011 02:59:42 +0000 (11:59 +0900)
Change-Id: Ia490b6888fe879598620fa5f9028050749c75230

src/lib/elm_cnp_helper.c

index 62c8198..7948e99 100644 (file)
@@ -1478,6 +1478,18 @@ notify_handler_targets(Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notif
                       if(!is_uri_type_data(sel, notify)) continue;
                     }
 #endif
+                  /*
+                   * temporary patch for elm_selection_get with ELM_SEL_FORMAT_HTML
+                   * it will be removed after cbhm refactoring
+                   */
+                  if ((j == CNP_ATOM_XELM)
+                      && (!(sel->requestformat & ELM_SEL_FORMAT_MARKUP)))
+                    {
+                       cnp_debug("Atom %s matched, but selection request is not ELM_SEL_FORMAT_MARKUP\n",
+                                 atoms[j].name);
+                       continue;
+                    }
+
                   cnp_debug("Atom %s matches\n",atoms[j].name);
                   goto done;
                }