From 1675b054f3a64a7650acf5616a5006371375f075 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 22 Apr 2012 19:45:47 +0000 Subject: Fix crash when saving patches with subpatches. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4237 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Serialiser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 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())); -- cgit v1.2.1