From 48a7a16305781c3b728abb7086caa425db5f4124 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Nov 2014 16:53:00 +0000 Subject: Fix bugs with stores that contain both graphs and default graph statements. git-svn-id: http://svn.drobilla.net/sord/trunk@315 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sord.c b/src/sord.c index 509135f..438f4b0 100644 --- a/src/sord.c +++ b/src/sord.c @@ -1194,7 +1194,7 @@ sord_add(SordModel* sord, const SordQuad tup) memcpy(quad, tup, sizeof(SordQuad)); for (unsigned i = 0; i < NUM_ORDERS; ++i) { - if (sord->indices[i]) { + if (sord->indices[i] && (i < GSPO || tup[3])) { if (!sord_add_to_index(sord, quad, (SordOrder)i)) { assert(i == 0); // Assuming index coherency free(quad); -- cgit v1.2.1