Elm entry: Fix segfault when selection is NULL.

Patch by Jihoon Kim, adjusted a bit.

SVN revision: 66714
This commit is contained in:
Tom Hacohen 2012-01-01 12:22:16 +00:00
parent c19672a89f
commit 571163d3c0
1 changed files with 1 additions and 1 deletions

View File

@ -1530,7 +1530,7 @@ _signal_selection_start(void *data, Evas_Object *obj __UNUSED__, const char *emi
Evas_Object *top;
top = elm_widget_top_get(data);
if ((top) && (elm_win_xwindow_get(top)))
if (txt && top && (elm_win_xwindow_get(top)))
elm_cnp_selection_set(ELM_SEL_TYPE_PRIMARY, data,
ELM_SEL_FORMAT_MARKUP, txt, strlen(txt));
}