From deaa67bb3055fab9fbb01715a28b90337b45d507 Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 20 Oct 2017 11:04:03 +0200 Subject: [PATCH] [bugfix] wront parent used for style --- pylot/core/util/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 14809d73..1fec0706 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -624,6 +624,7 @@ class PylotCanvas(FigureCanvas): # initialize super class super(PylotCanvas, self).__init__(self.figure) self.setParent(parent) + self.orig_parent = parent if multicursor: # add a cursor for station selection @@ -917,7 +918,7 @@ class PylotCanvas(FigureCanvas): nsc.sort() nsc.reverse() - style = self.parent()._style + style = self.orig_parent._style linecolor = style['linecolor']['rgba_mpl'] for n, (network, station, channel) in enumerate(nsc):