evas_text: backward compatibility for setting text size 59/211659/1
authorAli Alzyod <ali198724@gmail.com>
Wed, 7 Aug 2019 11:39:33 +0000 (20:39 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Thu, 8 Aug 2019 00:48:11 +0000 (09:48 +0900)
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

src/lib/evas/canvas/evas_object_text.c

index 0f18f8f..632eb50 100644 (file)
@@ -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);
 }