From e059806089ffafcf5b12f42ba13075280c940ec0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 31 Jan 2011 03:07:27 +0000 Subject: Fix broken loop. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2884 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PluginModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp index eec2d9b8..7515e997 100644 --- a/src/client/PluginModel.cpp +++ b/src/client/PluginModel.cpp @@ -105,7 +105,7 @@ PluginModel::get_property(const URI& key) const SLV2Values values = slv2_plugin_get_value(_slv2_plugin, lv2_pred); slv2_value_free(lv2_pred); for (unsigned i = 0; i < slv2_values_size(values); ++i) { - SLV2Value val = slv2_values_get_at(values, 0); + SLV2Value val = slv2_values_get_at(values, i); if (slv2_value_is_uri(val)) { ret = set_property(key, Atom(Atom::URI, slv2_value_as_uri(val))); break; -- cgit v1.2.1