diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-03-16 13:00:09 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-03-16 13:00:09 -0500 |
commit | 11a702149ea2e4a7bc858a2aeb4ea8efe12502ba (patch) | |
tree | 352266ab703d631698a4d95a9eab779e8481c9c4 /gtk2_ardour/editor_routes.cc | |
parent | 7b1c7efc1ca2e77d51568b0e8c3b2deb71115d54 (diff) |
avoid possible shared remote control IDs in large (>317 track) session
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r-- | gtk2_ardour/editor_routes.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index 761212d9a2..72c7fcf0ff 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -871,10 +871,19 @@ EditorRoutes::reset_remote_control_ids () for (ri = rows.begin(); ri != rows.end(); ++ri) { + /* skip two special values */ + + if (rid == Route::MasterBusRemoteControlID) { + rid++; + } + + if (rid == Route::MonitorBusRemoteControlID) { + rid++; + } + boost::shared_ptr<Route> route = (*ri)[_columns.route]; bool visible = (*ri)[_columns.visible]; - if (!route->is_master() && !route->is_monitor()) { uint32_t new_rid = (visible ? rid : invisible_key--); |