elm_cnp: use defined charset before falling back to default

the chance is very high that some glyphs are not fitting into the
default (US-ASCII) so better falling back here on specified utf8.

@ref T3972
This commit is contained in:
Marcel Hollerbach 2016-07-14 13:48:29 +02:00
parent ef817f15f0
commit d2926f74ff
1 changed files with 2 additions and 2 deletions

View File

@ -2991,14 +2991,14 @@ _wl_elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type selection, Elm_Se
(format & ELM_SEL_FORMAT_TEXT))
{
types[++i] = "application/x-elementary-markup";
types[++i] = "text/plain";
types[++i] = "text/plain;charset=utf-8";
types[++i] = "text/plain";
}
if (format & ELM_SEL_FORMAT_HTML)
{
types[++i] = "text/html";
types[++i] = "text/html;charset=utf-8";
types[++i] = "text/html";
}
if (i < 0) return EINA_FALSE;