From a8c5598add06e2a413d06dbccb61708d164959b5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 7 Sep 2007 23:09:18 +0000 Subject: Fix RDF URIs for subpatches (first letter was chopped). git-svn-id: http://svn.drobilla.net/lad/ingen@697 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/Serializer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libs') diff --git a/src/libs/client/Serializer.cpp b/src/libs/client/Serializer.cpp index be468202..035ff0ba 100644 --- a/src/libs/client/Serializer.cpp +++ b/src/libs/client/Serializer.cpp @@ -247,8 +247,10 @@ Serializer::patch_path_to_rdf_id(const Path& path) return Node(_model->world(), Node::RESOURCE, _base_uri); } else { assert(path.length() > _root_object->path().length()); - return Node(_model->world(), Node::RESOURCE, - _base_uri + string("#") + path.substr(_root_object->path().length() + 1)); + const Node ret(_model->world(), Node::RESOURCE, + _base_uri + string("#") + path.substr(_root_object->path().length())); + cerr << "RDF ID: " << path << " -> " << ret.to_string() << endl; + return ret; } } -- cgit v1.2.1