diff options
author | David Robillard <d@drobilla.net> | 2008-05-04 04:21:17 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-04 04:21:17 +0000 |
commit | 85973d1a800fd1a542c69feb1be80b6da309ace8 (patch) | |
tree | e8223dc3a05051621f2c19e1d79bb602c98537a3 /src/libs | |
parent | 437ef13d0f2bd712e1aece745a88917317b94335 (diff) | |
download | ingen-85973d1a800fd1a542c69feb1be80b6da309ace8.tar.gz ingen-85973d1a800fd1a542c69feb1be80b6da309ace8.tar.bz2 ingen-85973d1a800fd1a542c69feb1be80b6da309ace8.zip |
Fix serialisation of floating point variables (fixes module positioning).
git-svn-id: http://svn.drobilla.net/lad/ingen@1200 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/client/Store.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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<ObjectModel> 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); |