diff options
author | David Robillard <d@drobilla.net> | 2014-11-03 20:52:14 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-03 20:52:14 -0500 |
commit | a54f8141dc05b4a2f9f7bc0cbcc3a2b79f068315 (patch) | |
tree | a3662848e5af20e906bc1fc3c2292e32a0d178b6 /libs/ardour/lv2_plugin.cc | |
parent | 9f3f017736c252b198a86324227e797032c76114 (diff) |
Use format string even for units we understand (print Hz units).
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 4affd89eae..d7a68fe3e7 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1340,7 +1340,8 @@ load_parameter_descriptor_units(LilvWorld* lworld, ParameterDescriptor& desc, co desc.unit = ParameterDescriptor::DB; } else if (lilv_nodes_contains(units, _world.units_hz)) { desc.unit = ParameterDescriptor::HZ; - } else if (lilv_nodes_size(units) > 0) { + } + if (lilv_nodes_size(units) > 0) { const LilvNode* unit = lilv_nodes_get_first(units); LilvNode* render = get_value(lworld, unit, _world.units_render); if (render) { |