summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2017-03-15 10:40:01 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-03-15 10:49:47 -0700
commit24ed55539d76d546a0fb29379acfe241c633ddd8 (patch)
treec25233e93ce406c8fc42a2fcac36bf5918d25856
parent23eb88709b3b7db6b5295364cc2ed1a92c10c140 (diff)
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 <cedric@osg.samsung.com>
-rw-r--r--src/lib/evas/canvas/evas_object_text.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c
index 2e243be884..c91e9d2fc6 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
432 432
433 evas_object_async_block(obj); 433 evas_object_async_block(obj);
434 if ((size == o->cur.size) && 434 if ((size == o->cur.size) &&
435 ((!font && !o->cur.font) || 435 (o->cur.font && !strcmp(font, o->cur.font))) return;
436 (font && o->cur.font && !strcmp(font, o->cur.font)))) return;
437 436
438 /* We can't assume the given font is same with current fdesc by comparing string. 437 /* We can't assume the given font is same with current fdesc by comparing string.
439 Since Evas starts to supporting "auto" for language, 438 Since Evas starts to supporting "auto" for language,