summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/Port.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui/Port.cpp')
-rw-r--r--src/libs/gui/Port.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp
index 04d45f1d..97a06bcd 100644
--- a/src/libs/gui/Port.cpp
+++ b/src/libs/gui/Port.cpp
@@ -122,11 +122,10 @@ Port::set_control(float value, bool signal)
void
Port::variable_change(const string& key, const Atom& value)
{
- if ( (key == "ingen:minimum") && value.type() == Atom::FLOAT) {
+ if ( (key == "ingen:minimum") && value.type() == Atom::FLOAT)
set_control_min(value.get_float());
- } else if ( (key == "ingen:maximum") && value.type() == Atom::FLOAT) {
+ else if ( (key == "ingen:maximum") && value.type() == Atom::FLOAT)
set_control_max(value.get_float());
- }
}