summaryrefslogtreecommitdiffstats
path: root/src/client/PluginModel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-01-24 16:23:28 +0000
committerDavid Robillard <d@drobilla.net>2014-01-24 16:23:28 +0000
commit5595f3a3e43acbda31cb33e7debbdaa0f43cd4b4 (patch)
tree3c872eacdd6e7e2cfa136f0990532418d5e5a3d1 /src/client/PluginModel.cpp
parent44087814a1013d93f0bf261f3bea0c9068cf9409 (diff)
downloadingen-5595f3a3e43acbda31cb33e7debbdaa0f43cd4b4.tar.gz
ingen-5595f3a3e43acbda31cb33e7debbdaa0f43cd4b4.tar.bz2
ingen-5595f3a3e43acbda31cb33e7debbdaa0f43cd4b4.zip
Order scale points by value (fix #951).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5323 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PluginModel.cpp')
-rw-r--r--src/client/PluginModel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index 179e935b..5f83d82d 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -209,10 +209,9 @@ PluginModel::port_scale_points(uint32_t i) const
LilvScalePoints* sp = lilv_port_get_scale_points(_lilv_plugin, port);
LILV_FOREACH(scale_points, i, sp) {
const LilvScalePoint* p = lilv_scale_points_get(sp, i);
- points.push_back(
- std::make_pair(
- lilv_node_as_float(lilv_scale_point_get_value(p)),
- lilv_node_as_string(lilv_scale_point_get_label(p))));
+ points.insert(
+ make_pair(lilv_node_as_float(lilv_scale_point_get_value(p)),
+ lilv_node_as_string(lilv_scale_point_get_label(p))));
}
}
return points;