summaryrefslogtreecommitdiffstats
path: root/src/gui/PortPropertiesWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-12 06:59:48 +0000
committerDavid Robillard <d@drobilla.net>2012-03-12 06:59:48 +0000
commit81e9fb3245bd461ebfee4cfa16d1792e48533f9e (patch)
treeeb1b30d79cba70dda9d832100dd7c14b08085b03 /src/gui/PortPropertiesWindow.cpp
parente9d9569271ee962c09ab66c6babed1ca5655a6c6 (diff)
downloadingen-81e9fb3245bd461ebfee4cfa16d1792e48533f9e.tar.gz
ingen-81e9fb3245bd461ebfee4cfa16d1792e48533f9e.tar.bz2
ingen-81e9fb3245bd461ebfee4cfa16d1792e48533f9e.zip
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
Diffstat (limited to 'src/gui/PortPropertiesWindow.cpp')
-rw-r--r--src/gui/PortPropertiesWindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/PortPropertiesWindow.cpp b/src/gui/PortPropertiesWindow.cpp
index cca61ecd..13dd4781 100644
--- a/src/gui/PortPropertiesWindow.cpp
+++ b/src/gui/PortPropertiesWindow.cpp
@@ -153,8 +153,12 @@ PortPropertiesWindow::ok()
{
const Shared::URIs& uris = _app->uris();
Resource::Properties props;
- props.insert(make_pair(uris.lv2_minimum, float(_min_spinner->get_value())));
- props.insert(make_pair(uris.lv2_maximum, float(_max_spinner->get_value())));
+ props.insert(
+ make_pair(uris.lv2_minimum,
+ _app->forge().make(float(_min_spinner->get_value()))));
+ props.insert(
+ make_pair(uris.lv2_maximum,
+ _app->forge().make(float(_max_spinner->get_value()))));
_app->engine()->put(_port_model->path(), props);
hide();
}