Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_entry.c Log Message: Initialize font string regardless of old format. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_entry.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ewl_entry.c 11 Mar 2005 23:17:45 -0000 1.4 +++ ewl_entry.c 11 Mar 2005 23:35:24 -0000 1.5 @@ -1763,20 +1763,16 @@ DENTER_FUNCTION(DLEVEL_STABLE); + of[0] = '\0'; + size = 1; format = evas_object_textblock_format_current_get(e->textobj); if (format) { sscanf(format, "font=%s", of); sscanf(format, "size=%d", &size); } - else { - of[0] = '\0'; - size = 1; - } - if (of[0]) { - snprintf(nformat, PATH_MAX, "font=%s size=%d", opf->font, opf->size); - evas_object_textblock_format_insert(e->textobj, nformat); - } + snprintf(nformat, PATH_MAX, "font=%s size=%d", opf->font, opf->size); + evas_object_textblock_format_insert(e->textobj, nformat); IF_FREE(format); ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs