summaryrefslogtreecommitdiffstats
path: root/src/libs/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-16 06:01:01 +0000
committerDavid Robillard <d@drobilla.net>2008-08-16 06:01:01 +0000
commit1116f096282e47c4f85c4681906bacf2516d5a01 (patch)
treeceb4747f6e14c69fa6229b91e4817c471c637d72 /src/libs/serialisation
parent20e16797b9ee1de90d8409bd15212b9800c9d6da (diff)
downloadingen-1116f096282e47c4f85c4681906bacf2516d5a01.tar.gz
ingen-1116f096282e47c4f85c4681906bacf2516d5a01.tar.bz2
ingen-1116f096282e47c4f85c4681906bacf2516d5a01.zip
Properly write base URI when serializing a node or port.
git-svn-id: http://svn.drobilla.net/lad/ingen@1400 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/serialisation')
-rw-r--r--src/libs/serialisation/Serialiser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/serialisation/Serialiser.cpp b/src/libs/serialisation/Serialiser.cpp
index 1caac5b0..8d5bb1a7 100644
--- a/src/libs/serialisation/Serialiser.cpp
+++ b/src/libs/serialisation/Serialiser.cpp
@@ -160,6 +160,9 @@ Redland::Node
Serialiser::path_to_node_id(const Path& path)
{
assert(_model);
+
+ if (path == _root_object->path())
+ return Redland::Node(_model->world(), Redland::Node::RESOURCE, _base_uri);
NodeMap::iterator i = _node_map.find(path);
if (i != _node_map.end()) {