eina: fix in eina_rectangle_pool to make sorting effective

Summary: This patch fixes the bug related to sorting not happening in eina_rectangle_pool

Reviewers: cedric, raster, seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D556

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
This commit is contained in:
Rajeev Ranjan 2014-02-14 10:01:30 +09:00 committed by Cedric BAIL
parent b11ccd9787
commit 743d7da92f
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ eina_rectangle_pool_request(Eina_Rectangle_Pool *pool, int w, int h)
return NULL;
/* Sort empty if dirty */
if (pool->sorted)
if (!pool->sorted)
{
pool->empty =
eina_list_sort(pool->empty, 0, EINA_COMPARE_CB(_eina_rectangle_cmp));