edje: don't give a wrong Edje data when an Edje object has group parts

Summary:
_edje_part_fetch() function gets an Edje which has the requested Edje_Real_Part.
Basically, it gets main Edje of the given object.
But, if a requested part is in a GROUP part, it gets the Edje of GROUP part.
It shouldn't be passed to _edje_efl_text_text_get() function directly.
@fix

Test Plan: N/A

Reviewers: herdsman, raster, cedric, woohyun

Reviewed By: cedric

Subscribers: #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6149

Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Youngbok Shin 2018-05-25 10:09:13 -07:00 committed by Cedric BAIL
parent 6e6ed72921
commit cae57ff51b
1 changed files with 8 additions and 0 deletions

View File

@ -6340,6 +6340,14 @@ edje_object_part_text_get(const Edje_Object *obj, const char *part)
ERR("Invalid call on a non-text or non-textblock part: '%s' in group '%s'", part, ed->group);
return NULL;
}
ed = _edje_fetch(obj);
if (!ed)
{
ERR("Failed to get Edje data from object: '%p'", obj);
return NULL;
}
return _edje_efl_text_text_get(obj, ed, part, EINA_TRUE, EINA_FALSE);
}