summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c
index 5b7b64b..081aaf0 100644
--- a/src/state.c
+++ b/src/state.c
@@ -494,6 +494,9 @@ new_state_from_model(LilvWorld* world,
const SordNode* label = get1(model, port, world->uris.rdfs_label);
const SordNode* symbol = get1(model, port, world->uris.lv2_symbol);
const SordNode* value = get1(model, port, world->uris.pset_value);
+ if (!value) {
+ value = get1(model, port, world->uris.lv2_default);
+ }
if (!symbol) {
LILV_ERRORF("State `%s' port missing symbol.\n",
sord_node_get_string(node));