From 85973d1a800fd1a542c69feb1be80b6da309ace8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 May 2008 04:21:17 +0000 Subject: Fix serialisation of floating point variables (fixes module positioning). git-svn-id: http://svn.drobilla.net/lad/ingen@1200 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/Store.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index 10db5231..24a30064 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -494,8 +494,11 @@ void Store::variable_change_event(const Path& subject_path, const string& predicate, const Atom& value) { SharedPtr subject = object(subject_path); - - if (subject) { + + if (!value) { + cerr << "ERROR: variable '" << predicate << "' has no type" << endl; + } else if (subject) { + cerr << "Set variable '" << predicate << "' with type " << (int)value.type() << endl; subject->set_variable(predicate, value); } else { add_variable_orphan(subject_path, predicate, value); -- cgit v1.2.1