From 2e6c33de452c3d4dacaab4d3399f754ce81d0dd7 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Fri, 15 Sep 2017 18:56:04 +0200 Subject: [PATCH] [bugfix] allow picking of S phase in lower area of waveform plot Fixes bug report #211 --- pylot/core/util/widgets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index e12d6680..54772bc3 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1601,6 +1601,7 @@ class PickDlg(QDialog): return self.station def getChannelID(self, key): + if key < 0: key = 0 return self.multicompfig.getPlotDict()[int(key)][1] def getTraceID(self, channels):