summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/e_int_config_fonts.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/bin/e_int_config_fonts.c b/src/bin/e_int_config_fonts.c
index 5c94a17b1..43a96443d 100644
--- a/src/bin/e_int_config_fonts.c
+++ b/src/bin/e_int_config_fonts.c
@@ -144,16 +144,20 @@ _fill_data(E_Config_Dialog_Data *cfdata)
144 144
145 if (!strcmp(tc->class_name, efd->text_class)) 145 if (!strcmp(tc->class_name, efd->text_class))
146 { 146 {
147 tc->font = evas_stringshare_add(efd->font); 147 if (efd->font)
148 tc->size = efd->size; 148 tc->font = evas_stringshare_add(efd->font);
149 tc->enabled = 1; 149 else
150 tc->font = evas_stringshare_add("");
151
152 tc->size = efd->size;
153 tc->enabled = 1;
150 } 154 }
151 } 155 }
152 156
153 if (!tc->enabled) 157 if (!tc->enabled)
154 { 158 {
155 efd = e_font_default_get(tc->class_name); 159 efd = e_font_default_get(tc->class_name);
156 if (efd) 160 if (efd && efd->font)
157 { 161 {
158 tc->font = evas_stringshare_add(efd->font); 162 tc->font = evas_stringshare_add(efd->font);
159 tc->size = efd->size; 163 tc->size = efd->size;