From 038980939969dd5d32ff916708134143c5275cf9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Dec 2014 05:49:34 +0000 Subject: Fix deleting statements with no graph. git-svn-id: http://svn.drobilla.net/sord/trunk@320 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1