More slaved_to() replacements, fix typo
authorRobin Gareus <robin@gareus.org>
Wed, 27 Feb 2019 15:49:29 +0000 (16:49 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 27 Feb 2019 15:49:29 +0000 (16:49 +0100)
gtk2_ardour/control_slave_ui.cc

index 50a10b03b2d8e3509297b9a39dd2f78d2abc8130..f3b8a00b87531e715e907db592e3006de9a264c0 100644 (file)
@@ -102,7 +102,7 @@ ControlSlaveUI::update_vca_display ()
 
        if (stripable) {
                for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) {
-                       if (stripable->gain_control()->slaved_to ((*v)->gain_control())) {
+                       if (stripable->slaved_to (*v)) {
                                add_vca_button (*v);
                                any = true;
                        }
@@ -199,7 +199,7 @@ ControlSlaveUI::vca_button_release (GdkEventButton* ev, uint32_t n)
                items.push_back (CheckMenuElem ((*v)->name()));
                Gtk::CheckMenuItem* item = dynamic_cast<Gtk::CheckMenuItem*> (&items.back());
 
-               if (stripable->slaved_to (*i)) {
+               if (stripable->slaved_to (*v)) {
                        item->set_active (true);
                        slaved = true;
                }