summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-19 22:01:49 +0000
committerDavid Robillard <d@drobilla.net>2011-04-19 22:01:49 +0000
commita90f32d9aef9c93e308de560a975e81c3c86b343 (patch)
tree3fa6e76679297a61d961659b95d46734f8e861c8 /src/serialisation
parent74c76bd82792b03bd12f30aa875fae3e5047ccc2 (diff)
downloadingen-a90f32d9aef9c93e308de560a975e81c3c86b343.tar.gz
ingen-a90f32d9aef9c93e308de560a975e81c3c86b343.tar.bz2
ingen-a90f32d9aef9c93e308de560a975e81c3c86b343.zip
Partially fix HTTP.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3173 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/Serialiser.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index 37d80e0d..1eb76344 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -266,7 +266,7 @@ Sord::Node
Serialiser::path_rdf_node(const Path& path)
{
assert(_model);
- assert(path.is_child_of(_root_path));
+ assert(path == _root_path || path.is_child_of(_root_path));
const Path rel_path(path.relative_to_base(_root_path));
return Sord::URI(_model->world(), rel_path.chop_scheme().substr(1));
}
@@ -323,8 +323,7 @@ Serialiser::serialise_patch(SharedPtr<Patch> patch, const Sord::Node& patch_id)
if (s == patch->properties().end()
|| !s->second.type() == Atom::STRING
|| !Symbol::is_valid(s->second.get_string())) {
- const string path = Glib::filename_from_uri(_model->base_uri().to_c_string());
- symbol = Glib::path_get_basename(path);
+ symbol = Glib::path_get_basename(_model->base_uri().to_c_string());
symbol = Symbol::symbolify(symbol.substr(0, symbol.find('.')));
_model->add_statement(
patch_id,