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
This commit is contained in:
Ali Alzyod 2019-12-06 20:14:29 +00:00 committed by Cedric BAIL
parent 19f6be78c4
commit 25900bee0f
1 changed files with 1 additions and 3 deletions

View File

@ -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);