From ade7143eb2af64fd6743a64ebf1786dd5bbe1092 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 24 Oct 2015 18:22:23 +0000 Subject: Fix subgraph positioning git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5777 a436a847-0d15-0410-975c-d299462d15a1 --- src/Parser.cpp | 7 ++++--- 1 file 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); -- cgit v1.2.1