From 81e9fb3245bd461ebfee4cfa16d1792e48533f9e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 12 Mar 2012 06:59:48 +0000 Subject: Centralise atom creation in forge object. Aside from being more greppable and making realtime violations more obvious, this is a step towards using LV2 atoms internally (which needs a factory since the type numbers are dynamic). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4054 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PortMenu.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gui/PortMenu.cpp') diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp index 3656a97d..c757d917 100644 --- a/src/gui/PortMenu.cpp +++ b/src/gui/PortMenu.cpp @@ -128,10 +128,14 @@ PortMenu::on_menu_reset_range() parent->default_port_value_range(model, min, max); if (!std::isnan(min)) - _app->engine()->set_property(_object->path(), uris.lv2_minimum, min); + _app->engine()->set_property(_object->path(), + uris.lv2_minimum, + _app->forge().make(min)); if (!std::isnan(max)) - _app->engine()->set_property(_object->path(), uris.lv2_maximum, max); + _app->engine()->set_property(_object->path(), + uris.lv2_maximum, + _app->forge().make(max)); } } // namespace GUI -- cgit v1.2.1