summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-26 23:43:59 +0000
committerDavid Robillard <d@drobilla.net>2012-04-26 23:43:59 +0000
commit4e3a82b0de3646e74e40695d2537bb5071682318 (patch)
treea7d5acca4a40870620413ee96ecade115ac07604 /src/serialisation
parentb9de87b822a4fd61ffd4f0c899f7b8f81955c3f1 (diff)
downloadingen-4e3a82b0de3646e74e40695d2537bb5071682318.tar.gz
ingen-4e3a82b0de3646e74e40695d2537bb5071682318.tar.bz2
ingen-4e3a82b0de3646e74e40695d2537bb5071682318.zip
Save properties with pretty numbers so normal LV2 tools can read patches.
Fix running as a plugin. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4279 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/Serialiser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index c26be7be..d0d0e0d8 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -348,7 +348,7 @@ Serialiser::Impl::serialise_patch(SharedPtr<const Patch> patch,
_model->add_statement(patch_id,
Sord::URI(world, LV2_UI__ui),
- Sord::URI(world, "http://drobilla.net/ns/ingen#ui"));
+ Sord::URI(world, "http://drobilla.net/ns/ingen#PatchUIGtk2"));
const URIs& uris = *_world.uris().get();
@@ -556,6 +556,8 @@ Serialiser::Impl::serialise_properties(const GraphObject* o,
(SerdStatementSink)sord_inserter_write_statement, NULL,
inserter);
+ sratom_set_pretty_numbers(sratom, true);
+
typedef GraphObject::Properties::const_iterator iterator;
for (iterator v = props.begin(); v != props.end(); ++v) {
const Sord::URI key(_model->world(), v->first.str());