edje: calc - add curly braces to avoid ambiguous 'if'

merge two if conditions into one also.
This commit is contained in:
Amitesh Singh 2015-12-09 15:55:59 +05:30
parent c892a1cb71
commit 4cebfc526f
1 changed files with 6 additions and 5 deletions

View File

@ -432,11 +432,12 @@ _edje_part_description_find(Edje *ed, Edje_Real_Part *rp, const char *state_name
unsigned int i;
/* RTL flag is set, return RTL description */
if (edje_object_mirrored_get(ed->obj))
if (!ep->other.desc_rtl)
ep->other.desc_rtl = (Edje_Part_Description_Common **)
calloc(ep->other.desc_count,
sizeof (Edje_Part_Description_Common *));
if (edje_object_mirrored_get(ed->obj) && !ep->other.desc_rtl)
{
ep->other.desc_rtl = (Edje_Part_Description_Common **)
calloc(ep->other.desc_count,
sizeof (Edje_Part_Description_Common *));
}
if (!strcmp(state_name, "default") && state_val == 0.0)
return _edje_get_description_by_orientation(ed,