From c20ea78e52fe1056121687a3da764303bdb19602 Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 14 Aug 2017 11:38:31 +0200 Subject: [PATCH] [bugfix] check for station in picks before plot --- QtPyLoT.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/QtPyLoT.py b/QtPyLoT.py index 2cf0e6bb..197bb049 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -1921,11 +1921,17 @@ class MainWindow(QMainWindow): self.drawPicks(station, 'manual') self.drawPicks(station, 'auto') return + # if picks to draw not specified, draw all picks available if not station: for station in self.getPicks(type=picktype): self.drawPicks(station, picktype=picktype) return + + # check for station key in dictionary, else return + if not station in self.getPicks(type=picktype): + return + # plotting picks plotID = self.getStationID(station) if plotID is None: