eina - tiler -= return true if rect alreadt there as its not a failure

docs say return true on succesas, false on failure. adding a rect we
already added is not a failur. it's an optimization to a NOP. so fix.
this was brought up by and fixes T6669 ... but in the opposite way.
This commit is contained in:
Carsten Haitzler 2018-02-11 15:55:13 +09:00
parent f609d6dc99
commit 43ac3c0b4c
1 changed files with 1 additions and 1 deletions

View File

@ -1237,7 +1237,7 @@ EAPI Eina_Bool eina_tiler_rect_add(Eina_Tiler *t, const Eina_Rectangle *r)
return EINA_FALSE;
if (_rect_same(&tmp, &t->last.add))
return EINA_FALSE;
return EINA_TRUE;
t->last.add = tmp;
t->last.del.w = t->last.del.h = -1;