Fix exception when double clicking CREST fit browser hull (#1226)
This commit is contained in:
@@ -407,7 +407,13 @@ class FittingsTreeView(wx.Panel):
|
||||
|
||||
def displayFit(self, event):
|
||||
selection = self.fittingsTreeCtrl.GetSelection()
|
||||
fit = json.loads(self.fittingsTreeCtrl.GetPyData(selection))
|
||||
data = self.fittingsTreeCtrl.GetPyData(selection)
|
||||
|
||||
if data is None:
|
||||
event.Skip()
|
||||
return
|
||||
|
||||
fit = json.loads(data)
|
||||
list = []
|
||||
|
||||
for item in fit['items']:
|
||||
|
||||
Reference in New Issue
Block a user