efl_ui_table: modify comparing logic

Summary:
pad.h/v are integer varaibles, and also parameters h/v are too.
so that it is not needed to compare them like they are floating pointer.

Reviewers: bu5hm4n, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10722
This commit is contained in:
Wonki Kim 2019-11-22 12:40:17 +01:00 committed by Xavi Artigas
parent 070c8f6ae9
commit 8559b0472e
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ _efl_ui_table_efl_object_invalidate(Eo *obj, Efl_Ui_Table_Data *pd)
EOLIAN static void
_efl_ui_table_efl_gfx_arrangement_content_padding_set(Eo *obj, Efl_Ui_Table_Data *pd, unsigned int h, unsigned int v)
{
if (EINA_DBL_EQ(pd->pad.h, h) && EINA_DBL_EQ(pd->pad.v, v))
if (pd->pad.h == h && pd->pad.v == v)
return;
pd->pad.h = h;