From 1116f096282e47c4f85c4681906bacf2516d5a01 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Aug 2008 06:01:01 +0000 Subject: 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 --- src/libs/serialisation/Serialiser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libs/serialisation') 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()) { -- cgit v1.2.1