raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=43ac3c0b4cf845c6ca02bc9b440666b192eb235f

commit 43ac3c0b4cf845c6ca02bc9b440666b192eb235f
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sun Feb 11 15:55:13 2018 +0900

    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.
---
 src/lib/eina/eina_tiler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_tiler.c b/src/lib/eina/eina_tiler.c
index e8ea2eb858..c4c04d8641 100644
--- a/src/lib/eina/eina_tiler.c
+++ b/src/lib/eina/eina_tiler.c
@@ -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;

-- 


Reply via email to