ami pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4cebfc526fb845ea1484763f190bd99786722232

commit 4cebfc526fb845ea1484763f190bd99786722232
Author: Amitesh Singh <amitesh...@samsung.com>
Date:   Wed Dec 9 15:55:59 2015 +0530

    edje: calc - add curly braces to avoid ambiguous 'if'
    
    merge two if conditions into one also.
---
 src/lib/edje/edje_calc.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index c06e3ac..ff2146d 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -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,

-- 


Reply via email to