aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--NEWS1
-rw-r--r--src/lib/edje/edje_entry.c8
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ed9fe9d346..ec9d038b24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-05 Youngbok Shin
+
+ * Edje: Add null checking for name of anchor and item in geometry get functions.
+
2013-11-03 Christophe Sadoine
* Eet: Added EET_DATA_DESCRIPTOR_ADD_MAPPING_BASIC().
diff --git a/NEWS b/NEWS
index b7e0b8c1e2..e24caaacac 100644
--- a/NEWS
+++ b/NEWS
@@ -434,6 +434,7 @@ Fixes:
- Fix size calculation of flags of signal callbacks
- Check for both Lua 5.1 and 5.2.
- Fixed memory leak in the edje map color transition.
+ - Add null checking for name of anchor and item in geometry get functions.
* Efreet:
- Fix desktop command parsing of https.
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index 0f83fce548..9b7d95919d 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -2829,8 +2829,10 @@ _edje_entry_anchor_geometry_get(Edje_Real_Part *rp, const char *anchor)
if (!en) return NULL;
EINA_LIST_FOREACH(en->anchors, l, an)
{
+ const char *n = an->name;
if (an->item) continue;
- if (!strcmp(anchor, an->name))
+ if (!n) n = "";
+ if (!strcmp(anchor, n))
return an->sel;
}
return NULL;
@@ -2874,8 +2876,10 @@ _edje_entry_item_geometry_get(Edje_Real_Part *rp, const char *item, Evas_Coord *
if (!en) return EINA_FALSE;
EINA_LIST_FOREACH(en->anchors, l, an)
{
+ const char *n = an->name;
if (an->item) continue;
- if (!strcmp(item, an->name))
+ if (!n) n = "";
+ if (!strcmp(item, n))
{
evas_textblock_cursor_format_item_geometry_get(an->start, cx, cy, cw, ch);
return EINA_TRUE;