From 0e0c7dcda848838e5321b4eb80bae5f0f00d056f Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Mon, 18 Aug 2008 20:11:25 +0000
Subject: Fix serialisation of patcthes with internal nodes.

git-svn-id: http://svn.drobilla.net/lad/ingen@1434 a436a847-0d15-0410-975c-d299462d15a1
---
 src/libs/serialisation/Parser.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/libs/serialisation/Parser.cpp b/src/libs/serialisation/Parser.cpp
index c26921ea..4fc7b6a9 100644
--- a/src/libs/serialisation/Parser.cpp
+++ b/src/libs/serialisation/Parser.cpp
@@ -199,8 +199,6 @@ Parser::parse_patch(
 	std::set<Path> created;
 	uint32_t       patch_poly = 0;
 
-	cout << "PARSE PATCH: " << base_uri << " - " << object_uri << " - " << engine_base << endl;
-
 	/* Use parameter overridden polyphony, if given */
 	if (data) {
 		GraphObject::Variables::iterator poly_param = data.get().find("ingen:polyphony");
@@ -261,7 +259,7 @@ Parser::parse_patch(
 		const Path   node_path = patch_path.base() + node_name;
 
 		if (created.find(node_path) == created.end()) {
-			const string node_plugin     = world->rdf_world->qualify((*i)["plugin"].to_string());
+			const string node_plugin     = (*i)["plugin"].to_string();
 			bool         node_polyphonic = false;
 
 			const Redland::Node& poly_node = (*i)["poly"];
@@ -423,7 +421,7 @@ Parser::parse_node(
 		return false;
 	}
 
-	target->new_node(path, plugin_node.to_c_string());
+	target->new_node(path, world->rdf_world->expand_uri(plugin_node.to_c_string()));
 	parse_variables(world, target, model, base_uri, subject, path, data);
 
 	return true;
-- 
cgit v1.2.1