cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=24ed55539d76d546a0fb29379acfe241c633ddd8

commit 24ed55539d76d546a0fb29379acfe241c633ddd8
Author: Bryce Harrington <br...@osg.samsung.com>
Date:   Wed Mar 15 10:40:01 2017 -0700

    evas: drop redundant pointer check
    
    Summary:
    The function already has a precondition test for !font, so this
    additional test will never trigger.
    
    @fix CID1371525
    
    Reviewers: cedric, jpeg
    
    Subscribers: jpeg, cedric
    
    Differential Revision: https://phab.enlightenment.org/D4682
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/evas/canvas/evas_object_text.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_text.c 
b/src/lib/evas/canvas/evas_object_text.c
index 2e243be..c91e9d2 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -432,8 +432,7 @@ _evas_text_efl_text_properties_font_set(Eo *eo_obj, 
Evas_Text_Data *o, const cha
 
    evas_object_async_block(obj);
    if ((size == o->cur.size) &&
-       ((!font && !o->cur.font) ||
-        (font && o->cur.font && !strcmp(font, o->cur.font)))) return;
+       (o->cur.font && !strcmp(font, o->cur.font))) return;
 
    /* We can't assume the given font is same with current fdesc by comparing 
string.
       Since Evas starts to supporting "auto" for language,

-- 


Reply via email to