# HG changeset patch # User Laurent Bessard # Date 1354806626 -3600 # Node ID a4919f228924ec7a2443af78396b2484b7f4d253 # Parent f528c421637b7e2a7eca41b09c15dfd6b0187265 Fixed bug when indexing table in Pragma within ST/IL code diff -r f528c421637b -r a4919f228924 controls/VariablePanel.py --- a/controls/VariablePanel.py Wed Dec 05 15:32:02 2012 +0100 +++ b/controls/VariablePanel.py Thu Dec 06 16:10:26 2012 +0100 @@ -781,7 +781,6 @@ def OnVariablesGridCellLeftClick(self, event): row = event.GetRow() if not self.Debug and (event.GetCol() == 0 and self.Table.GetValueByName(row, "Edit")): - row = event.GetRow() var_name = self.Table.GetValueByName(row, "Name") var_class = self.Table.GetValueByName(row, "Class") var_type = self.Table.GetValueByName(row, "Type") diff -r f528c421637b -r a4919f228924 editors/TextViewer.py --- a/editors/TextViewer.py Wed Dec 05 15:32:02 2012 +0100 +++ b/editors/TextViewer.py Thu Dec 06 16:10:26 2012 +0100 @@ -694,7 +694,7 @@ "extensible": False} current_context = self.Variables else: - if char == '[': + if char == '[' and current_context is not None: self.ContextStack.append(current_context.get(word, None)) current_context = self.Variables