diff options
author | David Robillard <d@drobilla.net> | 2013-06-09 00:11:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-06-09 00:11:53 +0000 |
commit | d8786445f29d49ff3b43d942c2f98f937416a837 (patch) | |
tree | 548dbe0a1a62d3c2f256fca0909bf3b244da2682 /src/serialisation | |
parent | 50b785cfbe4ef9fcfd7b95d6948e457d62cfecf3 (diff) | |
download | ingen-d8786445f29d49ff3b43d942c2f98f937416a837.tar.gz ingen-d8786445f29d49ff3b43d942c2f98f937416a837.tar.bz2 ingen-d8786445f29d49ff3b43d942c2f98f937416a837.zip |
Fix saving of bad node URIs in state.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5131 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r-- | src/serialisation/Serialiser.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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()), |