From 5ae4d4d5e805e828b51b98767ac51da24c3b21f1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Oct 2007 19:46:07 +0000 Subject: 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 --- src/libs/client/NodeModel.cpp | 2 ++ src/libs/client/ObjectModel.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libs/client') 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 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; } -- cgit v1.2.1