summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_textblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_object_textblock.c')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 510f6ce..1135527 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -15808,13 +15808,13 @@ _efl_canvas_text_efl_text_font_font_set(Eo *obj EINA_UNUSED, Efl_Canvas_Text_Dat
15808 15808
15809 Eina_Stringshare *nfont; 15809 Eina_Stringshare *nfont;
15810 15810
15811 if (o->default_format.info.size != size) 15811 if (size > 0 && o->default_format.info.size != size)
15812 { 15812 {
15813 o->default_format.info.size = size; 15813 o->default_format.info.size = size;
15814 changed = EINA_TRUE; 15814 changed = EINA_TRUE;
15815 } 15815 }
15816 15816
15817 if (o->default_format.info.font != font) 15817 if (font && o->default_format.info.font != font)
15818 { 15818 {
15819 nfont = eina_stringshare_add(font); 15819 nfont = eina_stringshare_add(font);
15820 if (nfont == _FMT_INFO(font)) 15820 if (nfont == _FMT_INFO(font))