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.


SVN revision: 22203
This commit is contained in:
Stafford Mitchell Horne 2006-04-18 18:36:11 +00:00
parent 748c9d3690
commit efb7cead47
1 changed files with 8 additions and 4 deletions

View File

@ -144,16 +144,20 @@ _fill_data(E_Config_Dialog_Data *cfdata)
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;