diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2018-02-11 15:55:13 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2018-02-11 15:55:13 +0900 |
commit | 43ac3c0b4cf845c6ca02bc9b440666b192eb235f (patch) | |
tree | 8100ee66ad675657af7878a5c1ba9772021f3558 | |
parent | f609d6dc992c2626856dd70a321d1fd164762573 (diff) | |
download | efl-43ac3c0b4cf845c6ca02bc9b440666b192eb235f.tar.gz |
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.
-rw-r--r-- | src/lib/eina/eina_tiler.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |