eina: fix in eina_rectangle_pool to make sorting effective
authorRajeev Ranjan <rajeev.r@samsung.com>
Fri, 14 Feb 2014 01:01:30 +0000 (10:01 +0900)
committerCedric BAIL <cedric.bail@samsung.com>
Fri, 14 Feb 2014 01:04:15 +0000 (10:04 +0900)
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>
src/lib/eina/eina_rectangle.c

index 85cf310..5ae680b 100644 (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));