From d35f222ac3ae5828f028b4158aaeb8017227f7ce Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Mar 2018 18:36:11 -0500 Subject: Fix cut/copy/paste of arcs --- src/Parser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Parser.cpp b/src/Parser.cpp index 291b8851..fe58d995 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -565,16 +565,18 @@ parse(Ingen::World* world, const Sord::Node& s = i.first; const std::set& types = i.second; boost::optional ret; - const Raul::Path rel_path(*get_path(base_uri, s)); - const Raul::Path path = parent ? parent->child(rel_path) : rel_path; if (types.find(graph_class) != types.end()) { ret = parse_graph(world, target, model, base_uri, s, Resource::Graph::INTERNAL, parent, symbol, data); } else if (types.find(block_class) != types.end()) { + const Raul::Path rel_path(*get_path(base_uri, s)); + const Raul::Path path = parent ? parent->child(rel_path) : rel_path; ret = parse_block(world, target, model, base_uri, s, path, data); } else if (types.find(in_port_class) != types.end() || types.find(out_port_class) != types.end()) { + const Raul::Path rel_path(*get_path(base_uri, s)); + const Raul::Path path = parent ? parent->child(rel_path) : rel_path; parse_properties(world, target, model, s, Resource::Graph::DEFAULT, path_to_uri(path), data); -- cgit v1.2.1