summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-11 23:58:42 +0000
committerDavid Robillard <d@drobilla.net>2012-04-11 23:58:42 +0000
commit3047c5346364ee6ae10e7a41dab53eba96350030 (patch)
treebbffbf3a8107d82ac220e43c871746d3bd891112 /src
parent1f5977e973cb26700c261be10565853d2fd288f2 (diff)
downloadlilv-3047c5346364ee6ae10e7a41dab53eba96350030.tar.gz
lilv-3047c5346364ee6ae10e7a41dab53eba96350030.tar.bz2
lilv-3047c5346364ee6ae10e7a41dab53eba96350030.zip
Write port values in presets as pretty numbers.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4168 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/state.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index 735a8e4..0a4af18 100644
--- a/src/state.c
+++ b/src/state.c
@@ -797,7 +797,10 @@ lilv_state_write(LilvWorld* world,
sratom_set_sink(sratom, uri,
(SerdStatementSink)serd_writer_write_statement,
(SerdEndSink)serd_writer_end_anon,
- writer, false);
+ writer);
+
+ // Write port values as pretty numbers
+ sratom_set_pretty_numbers(sratom, true);
// Write port values
for (uint32_t i = 0; i < state->num_values; ++i) {
@@ -825,6 +828,9 @@ lilv_state_write(LilvWorld* world,
serd_writer_end_anon(writer, &port);
}
+ // Write property values with precise types
+ sratom_set_pretty_numbers(sratom, false);
+
// Write properties
const SerdNode state_node = serd_node_from_string(SERD_BLANK,
USTR("2state"));