forked from enlightenment/efl
on a NULl data - delete the old key and dont add any new one
SVN revision: 18161
This commit is contained in:
parent
3b20105112
commit
c198ded7af
|
@ -161,7 +161,8 @@ ecore_evas_data_set(Ecore_Evas *ee, const char *key, const void *data)
|
|||
if (!key) return;
|
||||
|
||||
ee->data = evas_hash_del(ee->data, key, NULL);
|
||||
ee->data = evas_hash_add(ee->data, key, data);
|
||||
if (data)
|
||||
ee->data = evas_hash_add(ee->data, key, data);
|
||||
}
|
||||
|
||||
#define IFC(_ee, _fn) if (_ee->engine.func->_fn) {_ee->engine.func->_fn
|
||||
|
|
Loading…
Reference in New Issue