[bugfix] wront parent used for style

This commit is contained in:
Marcel Paffrath 2017-10-20 11:04:03 +02:00
parent f01868bc36
commit deaa67bb30

View File

@ -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):