summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-21 20:02:12 +0000
committerDavid Robillard <d@drobilla.net>2012-12-21 20:02:12 +0000
commitb5e92da0baa38bd2d738b52e2d5c08bf389dd938 (patch)
treefa84e9cf816ea7ef12e707ff2ef16a5c60f30a8f
parent5247cce63f0ccee4002bed0541ebe925c46ea710 (diff)
downloadganv-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.c2
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;
}