Commit 155f11e
committed
Add bounds check for chan_buttons array access
Prevents "gtk_widget_set_name: assertion 'GTK_IS_WIDGET (widget)' failed" in terminal. When clicking on the scope background, the channel index becomes -1.1 parent 34672df commit 155f11e
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
1089 | | - | |
| 1088 | + | |
| 1089 | + | |
1090 | 1090 | | |
1091 | | - | |
1092 | | - | |
| 1091 | + | |
| 1092 | + | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
| |||
0 commit comments