From: Ali Alzyod Date: Wed, 7 Aug 2019 11:39:33 +0000 (+0900) Subject: evas_text: backward compatibility for setting text size X-Git-Tag: accepted/tizen/unified/20190808.223049~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5446f0fa19ca62d60c40029383db6601995603c5;p=platform%2Fupstream%2Fefl.git evas_text: backward compatibility for setting text size Summary: This is for backward compatibility for TIZEN Test cases for legacy Reviewers: woohyun Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9519 Change-Id: I4a928e8f9f92c29bb5d957f0183d6e1097fbe5b0 --- diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c index 0f18f8f..632eb50 100644 --- a/src/lib/evas/canvas/evas_object_text.c +++ b/src/lib/evas/canvas/evas_object_text.c @@ -2451,6 +2451,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) { + if (!font || size <= 0) return; /*Condition for legacy object*/ efl_text_font_set((Eo *) obj, font, size); }