hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=71f261bad483b67bc5e96ab7ce418d68e8d9de26

commit 71f261bad483b67bc5e96ab7ce418d68e8d9de26
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Thu Jul 7 13:56:16 2016 +0900

    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
---
 src/lib/enventor_smart.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c
index b3059f0..bff3b5a 100644
--- a/src/lib/enventor_smart.c
+++ b/src/lib/enventor_smart.c
@@ -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

-- 


Reply via email to