summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-15 17:44:24 +0000
committerDavid Robillard <d@drobilla.net>2012-05-15 17:44:24 +0000
commit2702958722392b6fa05d322380a279db25830f33 (patch)
treeec92998cc624db31eed30a674feae4291a9d537a /src/serialisation
parent22209796627acfef17c53d4cf523eed3daa26c2b (diff)
downloadingen-2702958722392b6fa05d322380a279db25830f33.tar.gz
ingen-2702958722392b6fa05d322380a279db25830f33.tar.bz2
ingen-2702958722392b6fa05d322380a279db25830f33.zip
Fix parsing of nested patches.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4417 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/Parser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp
index 2c56dc1e..8f00ae91 100644
--- a/src/serialisation/Parser.cpp
+++ b/src/serialisation/Parser.cpp
@@ -257,8 +257,11 @@ parse_node(Ingen::Shared::World* world,
const std::string sub_file =
string((const char*)sub_uri.buf) + "/" + basename + ".ttl";
+ const SerdNode sub_base = serd_node_from_string(
+ SERD_URI, (const uint8_t*)sub_file.c_str());
+
Sord::Model sub_model(*world->rdf_world(), sub_file);
- SerdEnv* env = serd_env_new(NULL);
+ SerdEnv* env = serd_env_new(&sub_base);
sub_model.load_file(env, SERD_TURTLE, sub_file);
serd_env_free(env);