summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajeev Ranjan <rajeev.r@samsung.com>2014-02-14 10:01:30 +0900
committerCedric BAIL <cedric.bail@samsung.com>2014-02-14 10:04:15 +0900
commit743d7da92fcdf032455af5ca3d67add0edd28d43 (patch)
treec7bed4ac55fe059f9967359c832cf22c7372f1e3
parentb11ccd9787103e821d1a969088937e83dc5040ba (diff)
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>
-rw-r--r--src/lib/eina/eina_rectangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_rectangle.c b/src/lib/eina/eina_rectangle.c
index 85cf310c2a..5ae680b7df 100644
--- a/src/lib/eina/eina_rectangle.c
+++ b/src/lib/eina/eina_rectangle.c
@@ -437,7 +437,7 @@ eina_rectangle_pool_request(Eina_Rectangle_Pool *pool, int w, int h)
437 return NULL; 437 return NULL;
438 438
439 /* Sort empty if dirty */ 439 /* Sort empty if dirty */
440 if (pool->sorted) 440 if (!pool->sorted)
441 { 441 {
442 pool->empty = 442 pool->empty =
443 eina_list_sort(pool->empty, 0, EINA_COMPARE_CB(_eina_rectangle_cmp)); 443 eina_list_sort(pool->empty, 0, EINA_COMPARE_CB(_eina_rectangle_cmp));