Revert "edje: calc - remove pointer comparison while finding part desc"
authorAmitesh Singh <amitesh.sh@samsung.com>
Wed, 9 Dec 2015 15:59:42 +0000 (21:29 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Wed, 9 Dec 2015 15:59:42 +0000 (21:29 +0530)
This reverts commit c892a1cb714fed496cbf5568c4d43880b6fb67b2.

src/lib/edje/edje_calc.c

index ff2146d..0505580 100644 (file)
@@ -461,7 +461,8 @@ _edje_part_description_find(Edje *ed, Edje_Real_Part *rp, const char *state_name
      {
         d = ep->other.desc[i];
 
-        if (d->state.name && (!strcmp(d->state.name, state_name)))
+        if (d->state.name && (d->state.name == state_name ||
+                              !strcmp(d->state.name, state_name)))
           {
              if (!approximate)
                {