fix entry crash

SVN revision: 78830
This commit is contained in:
Mike Blumenkrantz 2012-11-02 07:46:53 +00:00
parent c5b9a2b768
commit c3729552ee
1 changed files with 2 additions and 1 deletions

View File

@ -477,7 +477,8 @@ _e_entry_x_selection_update(Evas_Object *entry)
return;
text = edje_object_part_text_selection_get(sd->entry_object, ENTRY_PART_NAME);
ecore_x_selection_primary_set(xwin, text, strlen(text) + 1);
if (text)
ecore_x_selection_primary_set(xwin, text, strlen(text) + 1);
}
static void