From d8786445f29d49ff3b43d942c2f98f937416a837 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Jun 2013 00:11:53 +0000 Subject: Fix saving of bad node URIs in state. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5131 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Serialiser.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/serialisation') diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index 45d95050..a6c181f9 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -528,9 +528,11 @@ Serialiser::Impl::serialise_arc(const Sord::Node& parent, } static bool -skip_property(const Sord::Node& predicate) +skip_property(Ingen::URIs& uris, const Sord::Node& predicate) { - return (predicate.to_string() == "http://drobilla.net/ns/ingen#document"); + return (predicate.to_string() == "http://drobilla.net/ns/ingen#document" || + predicate.to_string() == uris.ingen_block || + predicate.to_string() == uris.lv2_port); } void @@ -552,7 +554,7 @@ Serialiser::Impl::serialise_properties(Sord::Node id, typedef Node::Properties::const_iterator iterator; for (const auto& p : props) { const Sord::URI key(_model->world(), p.first); - if (!skip_property(key)) { + if (!skip_property(_world.uris(), key)) { sratom_write(_sratom, unmap, 0, sord_node_to_serd_node(id.c_obj()), sord_node_to_serd_node(key.c_obj()), -- cgit v1.2.1