Enlightenment CVS committal

Author  : shorne
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_fonts.c 


Log Message:
Fix segv in font configuration (thanks tobias)
 * When the font is originally configured it is set to "". after a restart
   the font will be read from eet as NULL. I need to check for this.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_fonts.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_int_config_fonts.c        13 Apr 2006 00:01:15 -0000      1.7
+++ e_int_config_fonts.c        18 Apr 2006 18:36:11 -0000      1.8
@@ -144,16 +144,20 @@
             
             if (!strcmp(tc->class_name, efd->text_class))
               {
-               tc->font = evas_stringshare_add(efd->font);
-               tc->size = efd->size;
-               tc->enabled = 1;
+                 if (efd->font)
+                   tc->font = evas_stringshare_add(efd->font);
+                 else
+                   tc->font = evas_stringshare_add("");
+
+                 tc->size = efd->size;
+                 tc->enabled = 1;
               }
          }
 
        if (!tc->enabled)
          {
             efd = e_font_default_get(tc->class_name); 
-            if (efd)
+            if (efd && efd->font)
               {
                  tc->font = evas_stringshare_add(efd->font);
                  tc->size = efd->size;




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to