Tracks puts the master bus remote ID into a different "namespace" than Ardour
[ardour.git] / libs / ardour / session.cc
index ac3f05e323edc75f5ab1f1bc07da03f16c59f7b4..f1e3b19732afe3a3a9f9771c311938836980481b 100644 (file)
@@ -5997,6 +5997,12 @@ Session::next_control_id () const
                subtract++;
        }
 
+       /* the same about masterbus in Waves Tracks */
+
+       if (Profile->get_trx() && _master_out) {
+               subtract++;
+       }
+
        return nroutes() - subtract;
 }