summaryrefslogtreecommitdiffstats
path: root/src/sord.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-18 05:49:34 +0000
committerDavid Robillard <d@drobilla.net>2014-12-18 05:49:34 +0000
commit038980939969dd5d32ff916708134143c5275cf9 (patch)
tree82fd49f0749c610caec9937d063245be6d980fdd /src/sord.c
parentb5028e368328899fee90c5d38b694ec0b86e1324 (diff)
downloadsord-038980939969dd5d32ff916708134143c5275cf9.tar.gz
sord-038980939969dd5d32ff916708134143c5275cf9.tar.bz2
sord-038980939969dd5d32ff916708134143c5275cf9.zip
Fix deleting statements with no graph.
git-svn-id: http://svn.drobilla.net/sord/trunk@320 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord.c')
-rw-r--r--src/sord.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sord.c b/src/sord.c
index 438f4b0..f9b8e53 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -1220,7 +1220,7 @@ sord_remove(SordModel* sord, const SordQuad tup)
SordNode* quad = NULL;
for (unsigned i = 0; i < NUM_ORDERS; ++i) {
- if (sord->indices[i]) {
+ if (sord->indices[i] && (i < GSPO || tup[3])) {
if (zix_btree_remove(sord->indices[i], tup, (void**)&quad, NULL)) {
assert(i == 0); // Assuming index coherency
return; // Quad not found, do nothing