forked from enlightenment/efl
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:
parent
b11ccd9787
commit
743d7da92f
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue