if ((tc->name) && (!strcmp(tc->name, text_class)))
{
/* Match and the same, return */
- if ((tc->size == size) ||
- (tc->font == font) ||
- (tc->font && font && !strcmp(tc->font, font)))
+ if ((tc->size == size) &&
+ ((tc->font == font) ||
+ (tc->font && font && !strcmp(tc->font, font))))
return EINA_TRUE;
/* Update new text class properties */
}
tc->font = eina_stringshare_add(font);
tc->size = size;
+ /* Add to edje's text class list */
+ ed->text_classes = eina_list_append(ed->text_classes, tc);
}
for (i = 0; i < ed->table_parts_size; i++)
font, size);
}
- /* Add to edje's text class list */
- ed->text_classes = eina_list_append(ed->text_classes, tc);
ed->dirty = 1;
ed->recalc_call = 1;
#ifdef EDJE_CALC_CACHE