From 3e23b6e6a57e165a5547a5e455da5163ad0f8efa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 17 Nov 2008 02:15:11 +0000 Subject: Fix recursive connection loading (fix ticket #250). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1750 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Parser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp index 2959e12a..fac5a656 100644 --- a/src/serialisation/Parser.cpp +++ b/src/serialisation/Parser.cpp @@ -588,7 +588,7 @@ Parser::parse_connections( { Redland::Query query(*world->rdf_world, Glib::ustring( "SELECT DISTINCT ?src ?dst WHERE {\n") - /*+ subject*/ + /*"?foo ingen:connection ?connection .\n"*/ + + subject + " ingen:connection ?connection .\n" "?connection ingen:source ?src ;\n" " ingen:destination ?dst .\n" "}"); @@ -607,6 +607,9 @@ Parser::parse_connections( continue; } + src_path = src_path.substr(parent.base().length()-1); + dst_path = dst_path.substr(parent.base().length()-1); + target->connect(src_path, dst_path); } -- cgit v1.2.1