More on fixing state copies at edje edit: do not overwrite state's name and value.

SVN revision: 50873
This commit is contained in:
Gustavo Lima Chaves 2010-08-06 21:18:58 +00:00
parent 4cc5508828
commit bf4be4f0ec
1 changed files with 3 additions and 3 deletions

View 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);