diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index b1d3b8c49d..bc169afe4f 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -507,9 +507,9 @@ GenericPluginUI::automatic_layout (const std::vector& control_uis) } if (columns > max_columns_for_big_autostate) { - for (vector::iterator cuip = cui_controls_list.begin(); - cuip != cui_controls_list.end(); - ++cuip) { + for (vector::const_iterator cuip = control_uis.cbegin(); + cuip != control_uis.cend(); + ++cuip) { set_short_autostate(*cuip, true); } }