edje_cc now fails for multiple data entries with the same key, FIXME--

This commit is contained in:
Mike Blumenkrantz 2014-03-24 15:18:28 -04:00
parent c8dc78cd00
commit 15df46b707
1 changed files with 9 additions and 1 deletions

View File

@ -1737,8 +1737,16 @@ st_data_item(void)
if (!edje_file->data)
edje_file->data = eina_hash_string_small_new(free);
else
{
if (eina_hash_find(edje_file->data, key))
{
ERR("parse error %s:%i. There is already a data.item of the name %s",
file_in, line - 1, key);
exit(-1);
}
}
/* FIXME: check if data already exist */
eina_hash_direct_add(edje_file->data, key, es);
}