forked from enlightenment/efl
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:
parent
070c8f6ae9
commit
8559b0472e
|
@ -269,7 +269,7 @@ _efl_ui_table_efl_object_invalidate(Eo *obj, Efl_Ui_Table_Data *pd)
|
||||||
EOLIAN static void
|
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)
|
_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;
|
return;
|
||||||
|
|
||||||
pd->pad.h = h;
|
pd->pad.h = h;
|
||||||
|
|
Loading…
Reference in New Issue