summaryrefslogtreecommitdiffstats
path: root/src/Serialiser.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-25 17:47:28 +0000
committerDavid Robillard <d@drobilla.net>2015-10-25 17:47:28 +0000
commit1a33b800ac6245f59c99d76438feee8a21f04043 (patch)
treeaf66083a1af29ee514612c6e64e55fedf3762a05 /src/Serialiser.cpp
parentffae1d83620f0f57977c95e5e04f456bf0324b8c (diff)
downloadingen-1a33b800ac6245f59c99d76438feee8a21f04043.tar.gz
ingen-1a33b800ac6245f59c99d76438feee8a21f04043.tar.bz2
ingen-1a33b800ac6245f59c99d76438feee8a21f04043.zip
Fix saving and loading of copy-pasted blocks
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5785 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Serialiser.cpp')
-rw-r--r--src/Serialiser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp
index 8062325e..c1c1c251 100644
--- a/src/Serialiser.cpp
+++ b/src/Serialiser.cpp
@@ -563,15 +563,15 @@ Serialiser::Impl::serialise_properties(Sord::Node id,
const Sord::URI key(_model->world(), p.first);
if (!skip_property(_world.uris(), key)) {
if (p.second.type() == _world.uris().atom_URI &&
- !strncmp((const char*)p.second.get_body(), "ingen:/", 7)) {
- /* Value is an ingen:/ URI, relative to the running engine.
- Chop the prefix and save the path relative to the bundle.
+ !strncmp((const char*)p.second.get_body(), "ingen:/graph/", 13)) {
+ /* Value is a graph URI relative to the running engine.
+ Chop the prefix and save the path relative to the graph file.
This allows saving references to bundle resources. */
sratom_write(_sratom, unmap, 0,
sord_node_to_serd_node(id.c_obj()),
sord_node_to_serd_node(key.c_obj()),
p.second.type(), p.second.size(),
- (const char*)p.second.get_body() + 7);
+ (const char*)p.second.get_body() + 13);
} else {
sratom_write(_sratom, unmap, 0,
sord_node_to_serd_node(id.c_obj()),