From decfa5c3878943dd5b84bd9020d1812d5386660f Mon Sep 17 00:00:00 2001 From: glima Date: Fri, 6 Aug 2010 21:18:58 +0000 Subject: [PATCH] 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 --- src/lib/edje_edit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.7.4