From 1559767201d4c85fc87b24b7183d5c227f6a8628 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 24 Feb 2018 18:21:32 -0500 Subject: [PATCH] Ensure that the event is propagated when the graph window handles FitChanged (#1430) --- gui/graphFrame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/graphFrame.py b/gui/graphFrame.py index 1ecf2daca..8d7149a6b 100644 --- a/gui/graphFrame.py +++ b/gui/graphFrame.py @@ -229,6 +229,9 @@ class GraphFrame(wx.Frame): def draw(self, event=None): global mpl_version + if event is not None: + event.Skip() + values = self.getValues() view = self.getView() self.subplot.clear() @@ -299,8 +302,6 @@ class GraphFrame(wx.Frame): self.canvas.draw() self.SetStatusText("") - if event is not None: - event.Skip() def onFieldChanged(self, event): self.draw()