summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorali <ali198724@gmail.com>2019-12-06 20:14:29 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-12-06 15:26:40 -0800
commit25900bee0fd6633f181294067453e2c630526725 (patch)
treea02c079b26a2091f08eec7049e1ebb8c8d7b0caf
parent19f6be78c4326b7f5c60947e8f80e3372015a258 (diff)
downloadefl-25900bee0fd6633f181294067453e2c630526725.tar.gz
evas_text: retain legacy behaviour
This will retain old legacy behaviour (No Eina Checks). Warnings will be generated when using elementary test, unless we retain old behaviour https://phab.enlightenment.org/D10716#203305 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10826
-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 228aafb993..6cacf8e899 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)
EAPI void
evas_object_text_font_set(Eo *obj, const char *font, Evas_Font_Size size)
{
- /*Condition for legacy object*/
- EINA_SAFETY_ON_NULL_RETURN(font);
- EINA_SAFETY_ON_TRUE_RETURN(size <= 0);
+ if (!font || size <= 0) return; /*Condition for legacy object*/
efl_text_font_family_set((Eo *) obj, font);
efl_text_font_size_set((Eo *) obj, size);