Edje load: add safecheck for TEXTBLOCK-specific code path

There is a specific TEXTBLOCK part code path that shouldn't be taken
for other parts.

@fixes T6279
This commit is contained in:
Daniel Hirt 2018-06-20 19:24:05 +03:00
parent b2409153aa
commit ff8c383649
1 changed files with 2 additions and 1 deletions

View File

@ -1328,7 +1328,8 @@ _edje_object_file_set_internal(Evas_Object *obj, const Eina_File *file, const ch
}
}
if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
if ((rp->part->type == EDJE_PART_TYPE_TEXTBLOCK) &&
rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
{
_edje_entry_real_part_init(ed, rp);
if (!ed->has_entries)