summaryrefslogtreecommitdiffstats
path: root/src/gui/PortMenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/PortMenu.cpp')
-rw-r--r--src/gui/PortMenu.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp
index 63bd046c..4cff55f7 100644
--- a/src/gui/PortMenu.cpp
+++ b/src/gui/PortMenu.cpp
@@ -109,8 +109,9 @@ PortMenu::on_menu_set_min()
const URIs& uris = _app->uris();
SPtr<const PortModel> model = dynamic_ptr_cast<const PortModel>(_object);
const Atom& value = model->get_property(uris.ingen_value);
- if (value.is_valid())
+ if (value.is_valid()) {
_app->set_property(_object->uri(), uris.lv2_minimum, value);
+ }
}
void
@@ -119,8 +120,9 @@ PortMenu::on_menu_set_max()
const URIs& uris = _app->uris();
SPtr<const PortModel> model = dynamic_ptr_cast<const PortModel>(_object);
const Atom& value = model->get_property(uris.ingen_value);
- if (value.is_valid())
+ if (value.is_valid()) {
_app->set_property(_object->uri(), uris.lv2_maximum, value);
+ }
}
void