PortMatrixColumnLabels::mouseover_changed (PortMatrixNode const &)
{
clear_channel_highlights ();
- if (_body->mouseover().column.bundle) {
+ if (_body->mouseover().column.bundle && _body->mouseover().row.bundle) {
add_channel_highlight (_body->mouseover().column);
}
}
} else {
PortMatrixNode const n = position_to_node (x / grid_spacing(), y / grid_spacing());
- PortMatrixNode::State const s = get_association (n);
-
- set_association (n, toggle_state (s));
+ if (n.row.bundle && n.column.bundle) {
+ PortMatrixNode::State const s = get_association (n);
+ set_association (n, toggle_state (s));
+ }
}
require_render ();
for (int x = x0; x <= x1; ++x) {
if (steep) {
- p.push_back (position_to_node (y, x));
+ PortMatrixNode n = position_to_node (y, x);
+ if (n.row.bundle && n.column.bundle) {
+ p.push_back (n);
+ }
} else {
- p.push_back (position_to_node (x, y));
+ PortMatrixNode n = position_to_node (x, y);
+ if (n.row.bundle && n.column.bundle) {
+ p.push_back (n);
+ }
}
err += derr;
PortMatrixRowLabels::mouseover_changed (PortMatrixNode const &)
{
clear_channel_highlights ();
- if (_body->mouseover().row.bundle) {
+ if (_body->mouseover().column.bundle && _body->mouseover().row.bundle) {
add_channel_highlight (_body->mouseover().row);
}
}