Bug on array dimensions bound test fixed
authorlaurent
Tue, 01 Dec 2009 10:53:24 +0100
changeset 460 2ddf7bbd1f74
parent 459 a29f6f3e8468
child 461 649a8465148d
Bug on array dimensions bound test fixed
DataTypeEditor.py
--- a/DataTypeEditor.py	Sun Nov 29 19:02:32 2009 +0100
+++ b/DataTypeEditor.py	Tue Dec 01 10:53:24 2009 +0100
@@ -904,7 +904,7 @@
                     self.RefreshView()
                     return
                 bounds = result.groups()
-                if bounds[0] >= bounds[1]:
+                if int(bounds[0]) >= int(bounds[1]):
                     message = wx.MessageDialog(self, _("\"%s\" value isn't a valid array dimension!\nRight value must be greater than left value.")%dimensions, _("Error"), wx.OK|wx.ICON_ERROR)
                     message.ShowModal()
                     message.Destroy()