controls/VariablePanel.py
changeset 831 dec885ba1f2b
parent 830 4b9df5bea400
child 853 0f97bddb5a30
--- a/controls/VariablePanel.py	Wed Sep 12 19:12:13 2012 +0200
+++ b/controls/VariablePanel.py	Thu Sep 13 02:13:40 2012 +0200
@@ -204,7 +204,7 @@
                 grid.SetCellEditor(row, col, editor)
                 grid.SetCellRenderer(row, col, renderer)
                 
-                if colname == "Location" and LOCATION_MODEL.match(self.GetValueByName(row, "Location")) is None:
+                if colname == "Location" and LOCATION_MODEL.match(self.GetValueByName(row, colname)) is None:
                     highlight_colours = ERROR_HIGHLIGHT
                 else:
                     highlight_colours = row_highlights.get(colname.lower(), [(wx.WHITE, wx.BLACK)])[-1]