forked from enlightenment/efl
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:
parent
e86e741597
commit
2bf65e4ef8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue