Skip to content

Commit 8eacff9

Browse files
committed
Fix out of bound panic on number_of_highlights and highlight_labels tab
Signed-off-by: stropee <stropee@deltadore.com>
1 parent 64c0fb1 commit 8eacff9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gui.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@ impl MyApp {
610610
device.name = self.device.clone();
611611
self.serial_devices.devices.push(device);
612612
self.serial_devices.number_of_plots.push(1);
613+
self.serial_devices.number_of_highlights.push(1);
614+
self.serial_devices.highlight_labels.push(vec!["".to_string()]);
613615
self.serial_devices.labels.push(vec!["Column 0".to_string()]);
614616
self.device_idx = self.serial_devices.devices.len() - 1;
615617
save_serial_settings(&self.serial_devices);

0 commit comments

Comments
 (0)