summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-01-01 12:22:16 +0000
committerTom Hacohen <tom@stosb.com>2012-01-01 12:22:16 +0000
commit7057d1b1b047f1aeef2803f04df088758f6faf9a (patch)
treedc6c478fee8eb99249a5b796905415a24f227802 /src
parentf96210eea810ef99115a50a67101aaf9c331ef4e (diff)
Elm entry: Fix segfault when selection is NULL.
Patch by Jihoon Kim, adjusted a bit. SVN revision: 66714
Diffstat (limited to 'src')
-rw-r--r--src/lib/elm_entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 9dd3ce5f3..4b3af831c 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -1530,7 +1530,7 @@ _signal_selection_start(void *data, Evas_Object *obj __UNUSED__, const char *emi
1530 Evas_Object *top; 1530 Evas_Object *top;
1531 1531
1532 top = elm_widget_top_get(data); 1532 top = elm_widget_top_get(data);
1533 if ((top) && (elm_win_xwindow_get(top))) 1533 if (txt && top && (elm_win_xwindow_get(top)))
1534 elm_cnp_selection_set(ELM_SEL_TYPE_PRIMARY, data, 1534 elm_cnp_selection_set(ELM_SEL_TYPE_PRIMARY, data,
1535 ELM_SEL_FORMAT_MARKUP, txt, strlen(txt)); 1535 ELM_SEL_FORMAT_MARKUP, txt, strlen(txt));
1536 } 1536 }