diff options
author | Robin Gareus <robin@gareus.org> | 2016-02-26 14:51:06 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-02-26 14:51:06 +0100 |
commit | 1bee17d3b9cb8effbe59518742b06dff3bc1a4f8 (patch) | |
tree | 5887504c2c16c62866f5cd1c9bda590638c424d9 | |
parent | 394e36522e5953b506841b682aa47da3f1e57945 (diff) |
prevent livelock on NaN, inf control parameters - fixes #6789
|: Gtk::Adjustment::value_changed AutomationControl::set_value Controllable::Changed
GUI Event Loop Gtk::Adjustment::set_value :|
TODO: check portability of `isfinite ()`
-rw-r--r-- | libs/ardour/automation_control.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index 583f38807d..7e9b55976c 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -199,6 +199,9 @@ AutomationControl::internal_to_interface (double val) const double AutomationControl::interface_to_internal (double val) const { + if (!isfinite (val)) { + val = 0; + } if (_desc.logarithmic) { if (val <= 0) { val = 0; |