summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-24 18:22:23 +0000
committerDavid Robillard <d@drobilla.net>2015-10-24 18:22:23 +0000
commitade7143eb2af64fd6743a64ebf1786dd5bbe1092 (patch)
tree507a75e9f13f57d5fbe9a7e58db1784c0234b8e9 /src
parent84135d2b77b877665a56570b4ed15609c48c6e84 (diff)
downloadingen-ade7143eb2af64fd6743a64ebf1786dd5bbe1092.tar.gz
ingen-ade7143eb2af64fd6743a64ebf1786dd5bbe1092.tar.bz2
ingen-ade7143eb2af64fd6743a64ebf1786dd5bbe1092.zip
Fix subgraph positioning
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5777 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/Parser.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Parser.cpp b/src/Parser.cpp
index c0b5660e..42dc1bac 100644
--- a/src/Parser.cpp
+++ b/src/Parser.cpp
@@ -333,7 +333,7 @@ parse_block(Ingen::World* world,
path.parent(), Raul::Symbol(path.symbol()));
parse_graph(world, target, model, base_uri,
- sub_node, Resource::Graph::DEFAULT,
+ subject, Resource::Graph::DEFAULT,
path.parent(), Raul::Symbol(path.symbol()));
} else {
Resource::Properties props = get_properties(
@@ -388,7 +388,7 @@ parse_graph(Ingen::World* world,
// Create graph
Raul::Path graph_path(graph_path_str);
Resource::Properties props = get_properties(world, model, subject_node, ctx);
- target->put(Node::path_to_uri(graph_path), props);
+ target->put(Node::path_to_uri(graph_path), props, ctx);
// For each block in this graph
for (Sord::Iter n = model.find(subject_node, ingen_block, nil); !n.end(); ++n) {
@@ -440,7 +440,8 @@ parse_graph(Ingen::World* world,
// Create ports in order by index
for (const auto& p : ports) {
target->put(Node::path_to_uri(p.second.first),
- p.second.second);
+ p.second.second,
+ ctx);
}
parse_arcs(world, target, model, base_uri, subject_node, graph_path);