summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-02 06:21:51 +0000
committerDavid Robillard <d@drobilla.net>2012-05-02 06:21:51 +0000
commit0de3a4f70eafb0dc40292990ddd4064ac6e0758f (patch)
tree0df6c10fed500769f77b53be51e343805eda65cb /src
parent40cae22e899f1d316461b7c4b382513334497df9 (diff)
downloadsratom-0de3a4f70eafb0dc40292990ddd4064ac6e0758f.tar.gz
sratom-0de3a4f70eafb0dc40292990ddd4064ac6e0758f.tar.bz2
sratom-0de3a4f70eafb0dc40292990ddd4064ac6e0758f.zip
Correctly read objects with several rdf:type properties.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4310 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sratom.c b/src/sratom.c
index fe53065..a1508a6 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -639,7 +639,8 @@ read_node(Sratom* sratom,
const SordNode* p = match[SORD_PREDICATE];
const char* p_uri = (const char*)sord_node_get_string(p);
uint32_t p_urid = map->map(map->handle, p_uri);
- if (!sord_node_equals(p, sratom->nodes.rdf_type)) {
+ if (!(sord_node_equals(p, sratom->nodes.rdf_type)
+ && sord_node_equals(match[SORD_OBJECT], type))) {
// TODO: This will lose multiple rdf:type properties
lv2_atom_forge_property_head(forge, p_urid, 0);
read_node(sratom, forge, world, model,