forked from enlightenment/enventor
don't switch font info, if the same font comes.
I didn't dig further, but that corrupted enventor menu/setting. probably, eina_stringshare ocurred memory corrution...? anyhow, its useless to apply same font again. @fix T4013
This commit is contained in:
parent
0384f50f01
commit
71f261bad4
|
@ -687,6 +687,7 @@ _enventor_object_font_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
|
|||
const char *font_name, const char *font_style)
|
||||
{
|
||||
if (!font_name) return;
|
||||
if ((font_name == pd->font_name) && (font_style == pd->font_style)) return;
|
||||
|
||||
eina_stringshare_replace(&pd->font_name, font_name);
|
||||
eina_stringshare_replace(&pd->font_style, font_style);
|
||||
|
@ -698,9 +699,6 @@ _enventor_object_font_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
|
|||
elm_config_save();
|
||||
|
||||
elm_font_fontconfig_name_free(font);
|
||||
|
||||
//Main Item
|
||||
edit_font_update(pd->main_it.ed);
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
|
|
Loading…
Reference in New Issue