summaryrefslogtreecommitdiffstats
path: root/src/libs/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-21 19:46:07 +0000
committerDavid Robillard <d@drobilla.net>2007-10-21 19:46:07 +0000
commit5ae4d4d5e805e828b51b98767ac51da24c3b21f1 (patch)
tree6f84f0ffff4e7b65cd144e9c3134f66ab6515bd7 /src/libs/client
parent608aeac60ef43243b85c0dcc5894ccc79f35fba5 (diff)
downloadingen-5ae4d4d5e805e828b51b98767ac51da24c3b21f1.tar.gz
ingen-5ae4d4d5e805e828b51b98767ac51da24c3b21f1.tar.bz2
ingen-5ae4d4d5e805e828b51b98767ac51da24c3b21f1.zip
Fix various client-side variable state problems.
Fix port ranges. Close ticket 102. git-svn-id: http://svn.drobilla.net/lad/ingen@895 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client')
-rw-r--r--src/libs/client/NodeModel.cpp2
-rw-r--r--src/libs/client/ObjectModel.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/client/NodeModel.cpp b/src/libs/client/NodeModel.cpp
index b429d356..fff01aee 100644
--- a/src/libs/client/NodeModel.cpp
+++ b/src/libs/client/NodeModel.cpp
@@ -176,6 +176,8 @@ NodeModel::port_value_range(SharedPtr<PortModel> port, float& min, float& max)
min = min_atom.get_float();
if (max_atom.type() == Atom::FLOAT)
max = max_atom.get_float();
+
+ cerr << port->path() << " VALUE RANGE: " << min << ", " << max << endl;
}
diff --git a/src/libs/client/ObjectModel.hpp b/src/libs/client/ObjectModel.hpp
index 586ef8b3..55a5e6e1 100644
--- a/src/libs/client/ObjectModel.hpp
+++ b/src/libs/client/ObjectModel.hpp
@@ -61,7 +61,7 @@ public:
const Atom& get_variable(const string& key) const;
void set_variable(const string& key, const Atom& value)
- { _variables.insert(make_pair(key, value)); signal_variable.emit(key, value); }
+ { _variables[key] = value; signal_variable.emit(key, value); }
const Variables& variables() const { return _variables; }
const Path path() const { return _path; }