allow sending OSC from inline display UIs
[ardour.git] / gtk2_ardour / control_slave_ui.cc
index 3fd752c72f0d8be19c364b905c8845b5a7c7566d..55705cf590cc6f47aa98091506b575525dae65b6 100644 (file)
@@ -35,7 +35,7 @@
 #include "control_slave_ui.h"
 #include "gui_thread.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace Gtk;
@@ -94,10 +94,12 @@ ControlSlaveUI::update_vca_display ()
        Gtkmm2ext::container_clear (*this);
        master_connections.drop_connections ();
 
-       for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) {
-               if (stripable->gain_control()->slaved_to ((*v)->gain_control())) {
-                       add_vca_button (*v);
-                       any = true;
+       if (stripable) {
+               for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) {
+                       if (stripable->gain_control()->slaved_to ((*v)->gain_control())) {
+                               add_vca_button (*v);
+                               any = true;
+                       }
                }
        }