elm_icon: avoid useless assignment

Assigning id->edje to EINA_TRUE in a code path triggered when id->edje
is EINA_FALSE instead of unconditionnaly setting it to EINA_TRUE avoids
to assign id->edje to itself.
This commit is contained in:
Jean Guyomarc'h 2016-10-28 23:23:15 +02:00
parent e86e741597
commit 2bf65e4ef8
No known key found for this signature in database
GPG Key ID: 9BFD70B4662DC58C
1 changed files with 1 additions and 1 deletions

View File

@ -344,9 +344,9 @@ _elm_icon_efl_file_file_set(Eo *obj, Elm_Icon_Data *sd, const char *file, const
if (id->show)
evas_object_show(id->img);
evas_object_clip_set(id->img, pclip);
id->edje = EINA_TRUE;
}
id->edje = EINA_TRUE;
if (!edje_object_file_set(id->img, file, key))
{
ERR("failed to set edje file '%s', group '%s': %s", file, key,