From 05c73d1b1b3a59c709eb4548805d7a2029bcf36c Mon Sep 17 00:00:00 2001 From: blitzmann Date: Thu, 13 Nov 2014 11:18:44 -0500 Subject: [PATCH] If something happens and an error happens, return so that status is not reset later on --- gui/graphFrame.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/graphFrame.py b/gui/graphFrame.py index c8e25c98c..1c82da011 100644 --- a/gui/graphFrame.py +++ b/gui/graphFrame.py @@ -203,6 +203,8 @@ class GraphFrame(wx.Frame): legend.append(fit.name) except: self.SetStatusText("Invalid values in '%s'" % fit.name) + self.canvas.draw() + return if self.legendFix and len(legend) > 0: leg = self.subplot.legend(tuple(legend), "upper right" , shadow = False)