From: glima Date: Fri, 6 Aug 2010 21:18:58 +0000 (+0000) Subject: More on fixing state copies at edje edit: do not overwrite state's name and value. X-Git-Tag: submit/trunk/20120815.180907~1008 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68825420ca210b20b72955b4aed7e7d35009ed1d;p=profile%2Fivi%2Fedje.git More on fixing state copies at edje edit: do not overwrite state's name and value. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50873 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_edit.c b/src/lib/edje_edit.c index b29ad4c..64d643d 100644 --- a/src/lib/edje_edit.c +++ b/src/lib/edje_edit.c @@ -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);