diff --git a/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/WaveformViewer.java b/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/WaveformViewer.java index 25c9403..2dd646a 100644 --- a/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/WaveformViewer.java +++ b/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/WaveformViewer.java @@ -823,7 +823,7 @@ public class WaveformViewer implements IFileChangeListener, IPreferenceChangeLis List selectedTrackEntries = new LinkedList<>(); for (int i = 0; i < waves; i++) { String wtString = state.get(SHOWN_WAVEFORM + i + WAVEFORM_TYPE); - if(wtString!=null && WaveformType.valueOf(wtString)==WaveformType.EMPTY) { + if(wtString!=null && wtString.equals("EMPTY")) { TrackEntry trackEntry = waveformPane.addWaveform(new EmptyWaveform(state.get(SHOWN_WAVEFORM + i)), -1); //check if t is selected trackEntries.add(trackEntry);