Fix assertion failure on some right-clicks.
authorCarl Hetherington <carl@carlh.net>
Mon, 21 May 2012 15:18:55 +0000 (15:18 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 21 May 2012 15:18:55 +0000 (15:18 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12360 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/port_matrix.cc

index 286111c6d4bf1e23a30e3f40ff9c0c3f26fc8158..4ffd96e324581075e8ff1e048c9948f593fb271d 100644 (file)
@@ -429,7 +429,7 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
                                }
                        }
 
-                       if (can_rename_channels (bc[dim].bundle)) {
+                       if (can_rename_channels (bc[dim].bundle) && bc[dim].channel != -1) {
                                snprintf (
                                        buf, sizeof (buf), _("Rename '%s'..."),
                                        escape_underscores (bc[dim].bundle->channel_name (bc[dim].channel)).c_str()