[#1813] Build in extra safety-check on taking the spotlight

This commit is contained in:
SiboVG 2022-11-28 23:42:38 +01:00
parent 79a2b32d63
commit 1fb69f3a1f

View File

@ -1009,6 +1009,9 @@ public class SimulationPanel extends JPanel {
} else {
simulationTable.clearSelection();
for (int row : previousSelection) {
if (row < 0 || row >= simulationTable.getRowCount()) {
continue;
}
simulationTable.addRowSelectionInterval(row, row);
}
}