From 217537caf87bc5e3b04eed13db9662bf7749ddcd Mon Sep 17 00:00:00 2001 From: x03daop Date: Mon, 2 Nov 2015 14:37:28 +0100 Subject: [PATCH] Closedown --- plugins/PhotonEnergy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);