summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-22 19:45:47 +0000
committerDavid Robillard <d@drobilla.net>2012-04-22 19:45:47 +0000
commit1675b054f3a64a7650acf5616a5006371375f075 (patch)
tree3feefe7c5c081a85462be884f5c9c120cbd39d03 /src/serialisation
parent645aa668e672ac3b387153ad91f526b08582a801 (diff)
downloadingen-1675b054f3a64a7650acf5616a5006371375f075.tar.gz
ingen-1675b054f3a64a7650acf5616a5006371375f075.tar.bz2
ingen-1675b054f3a64a7650acf5616a5006371375f075.zip
Fix crash when saving patches with subpatches.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4237 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/Serialiser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index 38c47dc3..8225009e 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -408,12 +408,11 @@ Serialiser::Impl::serialise_patch(SharedPtr<const Patch> patch,
_model = my_model;
// Serialise reference to patch node
- const Sord::URI class_id(world, sub_bundle_path);
const Sord::Node node_id(path_rdf_node(subpatch->path()));
_model->add_statement(patch_id,
Sord::Curie(world, "ingen:node"),
node_id);
- serialise_node(subpatch, class_id, node_id);
+ serialise_node(subpatch, subpatch_id, node_id);
} else if (node) {
const Sord::URI class_id(world, node->plugin()->uri().str());
const Sord::Node node_id(path_rdf_node(n->second->path()));