edje cc lookup - fix to proper path fallback - mis-lookups fixed

This commit is contained in:
Carsten Haitzler 2021-08-16 11:48:41 +01:00
parent 9ef86222c8
commit 5a12ceaa7d
1 changed files with 3 additions and 3 deletions

View File

@ -5828,15 +5828,15 @@ _edje_hash_find_helper(const Eina_Hash *hash, const char *key)
buf = eina_strbuf_new();
for (i = tokens_count - 2; i >= 0; i--)
for (i = tokens_count - 1; i >= 0; i--)
{
for (j = 0; j < i; j++)
{
eina_strbuf_append(buf, tokens[j]);
eina_strbuf_append(buf, "/");
}
eina_strbuf_append(buf, tokens[tokens_count - 1]);
if (i == 0) eina_strbuf_append(buf, "/");
eina_strbuf_append(buf, tokens[i]);
data = eina_hash_find(hash, eina_strbuf_string_get(buf));
if (data) break;