diff --git a/plugins/PhotonEnergy.java b/plugins/PhotonEnergy.java index 4f951eb5..955e61bb 100644 --- a/plugins/PhotonEnergy.java +++ b/plugins/PhotonEnergy.java @@ -53,7 +53,7 @@ public class PhotonEnergy extends Panel { @Override public void onNewRecord(Scan scan, ScanRecord rec) { if (running) { - int index = rec.index + 1; + int index = rec.getIndex() + 1; if (index < table.getRowCount()) { table.setRowSelectionInterval(index, index); SwingUtils.scrollToVisible(table, index, 0);