summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/evas/canvas/evas_object_text.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c
index 228aafb..6cacf8e 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -2351,9 +2351,7 @@ evas_object_text_font_source_get(const Eo *obj)
2351EAPI void 2351EAPI void
2352evas_object_text_font_set(Eo *obj, const char *font, Evas_Font_Size size) 2352evas_object_text_font_set(Eo *obj, const char *font, Evas_Font_Size size)
2353{ 2353{
2354 /*Condition for legacy object*/ 2354 if (!font || size <= 0) return; /*Condition for legacy object*/
2355 EINA_SAFETY_ON_NULL_RETURN(font);
2356 EINA_SAFETY_ON_TRUE_RETURN(size <= 0);
2357 2355
2358 efl_text_font_family_set((Eo *) obj, font); 2356 efl_text_font_family_set((Eo *) obj, font);
2359 efl_text_font_size_set((Eo *) obj, size); 2357 efl_text_font_size_set((Eo *) obj, size);