summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorali <ali198724@gmail.com>2019-12-13 23:23:15 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-12-13 16:35:32 -0800
commitc3dbcb2447dcdc01050fdb87533affabe42f154a (patch)
tree8642e5d6ba0e4e58a017dbe2ca38a97b94cf46e6
parent5892292ac8066e5e00fba085990d7190a36404f3 (diff)
edje_entry: real part protection check
Fix T8524 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10875
-rw-r--r--src/lib/edje/edje_entry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index 14696182d1..92bc0df031 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -4400,7 +4400,10 @@ Eina_Bool
4400_edje_text_cursor_coord_set(Edje_Real_Part *rp, Efl_Text_Cursor_Handle *c, 4400_edje_text_cursor_coord_set(Edje_Real_Part *rp, Efl_Text_Cursor_Handle *c,
4401 Evas_Coord x, Evas_Coord y) 4401 Evas_Coord x, Evas_Coord y)
4402{ 4402{
4403 if ((rp->type != EDJE_RP_TYPE_TEXT) ||
4404 (!rp->typedata.text)) return EINA_FALSE;
4403 Entry *en = rp->typedata.text->entry_data; 4405 Entry *en = rp->typedata.text->entry_data;
4406 if (!en) return EINA_FALSE;
4404 if ((c == _cursor_get(rp, EDJE_CURSOR_SELECTION_BEGIN)) || 4407 if ((c == _cursor_get(rp, EDJE_CURSOR_SELECTION_BEGIN)) ||
4405 (c == _cursor_get(rp, EDJE_CURSOR_SELECTION_END))) 4408 (c == _cursor_get(rp, EDJE_CURSOR_SELECTION_END)))
4406 { 4409 {