diff options
author | David Robillard <d@drobilla.net> | 2014-12-18 05:49:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-18 05:49:34 +0000 |
commit | 038980939969dd5d32ff916708134143c5275cf9 (patch) | |
tree | 82fd49f0749c610caec9937d063245be6d980fdd /src/sord.c | |
parent | b5028e368328899fee90c5d38b694ec0b86e1324 (diff) | |
download | sord-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |