More on fixing state copies at edje edit: do not overwrite state's name and value.
authorglima <glima@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 6 Aug 2010 21:18:58 +0000 (21:18 +0000)
committerglima <glima@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 6 Aug 2010 21:18:58 +0000 (21:18 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@50873 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_edit.c

index b29ad4c..64d643d 100644 (file)
@@ -2918,9 +2918,6 @@ edje_edit_state_copy(Evas_Object *obj, const char *part, const char *from, doubl
          }
        rp->part->other_desc = tmp;
        rp->part->other_desc[rp->part->other_count++] = pdto;
-
-       pdto->state.name = eina_stringshare_add(to);
-       pdto->state.value = val_to;
      }
 
 #define PD_STRING_COPY(To, From, _x)                   \
@@ -2929,6 +2926,9 @@ edje_edit_state_copy(Evas_Object *obj, const char *part, const char *from, doubl
 
    /* Copy all value */
    *pdto = *pdfrom;
+   /* Keeping the pdto state name and value */
+   pdto->state.name = eina_stringshare_add(to);
+   pdto->state.value = val_to;
    /* Update pointer. */
    PD_STRING_COPY(pdto, pdfrom, color_class);