diff options
author | Carl Hetherington <carl@carlh.net> | 2012-05-21 15:18:55 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-05-21 15:18:55 +0000 |
commit | 10d0b1cf7a3b627fae7f8432349d26e64ed1bb67 (patch) | |
tree | fad007c329660495abd9ed8192d0796ba567504b /gtk2_ardour/port_matrix.cc | |
parent | c8c6b185c246cc2aa12d7f58efe9573b075abf23 (diff) |
Fix assertion failure on some right-clicks.
git-svn-id: svn://localhost/ardour2/branches/3.0@12360 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 286111c6d4..4ffd96e324 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -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() |