eina: fix eina_tiler_equal to not always return true

ref e3f4f4457d
broken by D996

@fix
This commit is contained in:
Mike Blumenkrantz 2017-07-14 18:43:06 -04:00
parent 47ddbede05
commit 83ff889f6d
1 changed files with 3 additions and 3 deletions

View File

@ -1556,17 +1556,17 @@ eina_tiler_equal(const Eina_Tiler *t1,
while((rect1) && (rect2))
{
if (!eina_rectangles_intersect(rect1, rect2))
break;
goto cleanup;
if ((rect1->x != rect2->x) || (rect1->y != rect2->y) ||
(rect1->w != rect2->w) || (rect1->h != rect2->h))
break;
goto cleanup;
next_t1 = eina_iterator_next(itr1, (void**)&rect1);
next_t2 = eina_iterator_next(itr2, (void**)&rect2);
if (next_t1 != next_t2)
break;
goto cleanup;
if (!next_t1 && !next_t2)
break;