evas_object_geometry_get(wd->bx[i], &bx, &by, &bw, &bh);
EINA_LIST_FOREACH(wd->items, l, it)
{
- if (!((it->level == i) && (VIEW(it)))) continue;
- if ((VIEW(it)) && (it->level != wd->level))
+ if (it->level != i) continue;
+ if (it->level != wd->level)
{
if (it->selected)
{
if (!label) label = strdup(last);
else
{
- /* FIXME: realloc return NULL if the request fails */
label = realloc(label, strlen(label) + strlen(last) + 1);
+ if (!label) return;
strcat(label, last);
}
free(last);
}
}
}
+
if (!label) label = strdup("");
if (!last) last = strdup("");
edje_object_part_text_set(wd->base, "elm.text.body", label);