Vkeybd: add a mod-wheel
[ardour.git] / gtk2_ardour / duplicate_routes_dialog.cc
index 0b6cc04c9657852abbc876f3ecb7f76a7d772dee..c4693664b28691f9be5fb0b696d97a551f3e1a5d 100644 (file)
@@ -1,21 +1,20 @@
 /*
-    Copyright (C) 2015 Paul Davis
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
+ * Copyright (C) 2015-2019 Paul Davis <paul@linuxaudiosystems.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
 
 #include "gtkmm/stock.h"
 
@@ -170,7 +169,9 @@ DuplicateRouteDialog::on_response (int response)
 
        for (TrackSelection::iterator t = tracks.begin(); t != tracks.end(); ++t) {
                RouteUI* rui = dynamic_cast<RouteUI*> (*t);
-               sl.push_back (rui->route());
+               if (rui) {
+                       sl.push_back (rui->route());
+               }
        }
 
        sl.sort (Stripable::Sorter());