projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f96210e
)
Elm entry: Fix segfault when selection is NULL.
author
Tom Hacohen
<tom@stosb.com>
Sun, 1 Jan 2012 12:22:16 +0000
(12:22 +0000)
committer
Tom Hacohen
<tom@stosb.com>
Sun, 1 Jan 2012 12:22:16 +0000
(12:22 +0000)
Patch by Jihoon Kim, adjusted a bit.
SVN revision: 66714
src/lib/elm_entry.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_entry.c
b/src/lib/elm_entry.c
index
9dd3ce5
..
4b3af83
100644
(file)
--- 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
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));
}