diff options
author | David Robillard <d@drobilla.net> | 2012-12-21 20:02:12 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-12-21 20:02:12 +0000 |
commit | b5e92da0baa38bd2d738b52e2d5c08bf389dd938 (patch) | |
tree | fa84e9cf816ea7ef12e707ff2ef16a5c60f30a8f | |
parent | 5247cce63f0ccee4002bed0541ebe925c46ea710 (diff) | |
download | ganv-b5e92da0baa38bd2d738b52e2d5c08bf389dd938.tar.gz ganv-b5e92da0baa38bd2d738b52e2d5c08bf389dd938.tar.bz2 ganv-b5e92da0baa38bd2d738b52e2d5c08bf389dd938.zip |
Slightly better quasi-cascade.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4878 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/group.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |