summaryrefslogtreecommitdiffstats
path: root/src/sord.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-24 14:12:05 +0000
committerDavid Robillard <d@drobilla.net>2011-05-24 14:12:05 +0000
commit936c70a02f140c3ad9d13f2b222859479e860690 (patch)
treef570bdd46343e0e5a1956c4fc08733d95cfa6227 /src/sord.c
parent7c1e48a2902373c5b2d893bd9ffd44056c044538 (diff)
downloadsord-936c70a02f140c3ad9d13f2b222859479e860690.tar.gz
sord-936c70a02f140c3ad9d13f2b222859479e860690.tar.bz2
sord-936c70a02f140c3ad9d13f2b222859479e860690.zip
Fix removing.
git-svn-id: http://svn.drobilla.net/sord/trunk@125 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord.c')
-rw-r--r--src/sord.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sord.c b/src/sord.c
index b9eb5e7..fa9c074 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -1131,7 +1131,8 @@ sord_remove(SordModel* sord, const SordQuad tup)
for (unsigned i = 0; i < NUM_ORDERS; ++i) {
if (sord->indices[i]) {
const int* const ordering = orderings[i];
- GSequenceIter* const cur = index_search(sord->indices[i], tup, ordering);
+ GSequenceIter* const cur = index_lower_bound(
+ sord->indices[i], tup, ordering);
if (!g_sequence_iter_is_end(cur)) {
if (!quad) {
quad = g_sequence_get(cur);