DataTypeEditor.py
changeset 379 e4c26ee9c998
parent 313 9266d1e6e3d4
child 389 6a72016d721a
--- a/DataTypeEditor.py	Fri Jul 10 11:41:07 2009 +0200
+++ b/DataTypeEditor.py	Thu Jul 23 17:50:26 2009 +0200
@@ -163,7 +163,7 @@
                 grid.SetCellEditor(row, col, editor)
                 grid.SetCellRenderer(row, col, renderer)
                 
-                if row in self.Errors and self.Errors[row][0] == colname.lower():
+                if self.Errors.has_key(row) and self.Errors[row][0] == colname.lower():
                     grid.SetCellBackgroundColour(row, col, wx.Colour(255, 255, 0))
                     grid.SetCellTextColour(row, col, wx.RED)
                     grid.MakeCellVisible(row, col)
@@ -204,7 +204,7 @@
         self.Errors = {}
 
 #-------------------------------------------------------------------------------
-#                          Configuration Editor class
+#                          Datatype Editor class
 #-------------------------------------------------------------------------------
 
 [ID_DATATYPEEDITOR, ID_DATATYPEEDITORSTATICBOX,