DataTypeEditor.py
changeset 460 2ddf7bbd1f74
parent 440 e183bffc05f0
child 462 9abbc90c0263
--- 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()