From b5e92da0baa38bd2d738b52e2d5c08bf389dd938 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Dec 2012 20:02:12 +0000 Subject: Slightly better quasi-cascade. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4878 a436a847-0d15-0410-975c-d299462d15a1 --- src/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/group.c b/src/group.c index 6e212a7..c26bc51 100644 --- a/src/group.c +++ b/src/group.c @@ -202,7 +202,7 @@ item_layer_cmp(const void* a, const void* b, void* user_data) GanvItem* ib = (GanvItem*)b; if (ia->layer == ib->layer) { // Same layer, order in a quasi-cascade - return (ia->x - ib->x); + return (ia->x1 - ib->x1) + (ia->y1 - ib->y1); } else { return ia->layer - ib->layer; } -- cgit v1.2.1