--- a/objdictgen/subindextable.py Tue Oct 30 16:21:04 2007 +0100
+++ b/objdictgen/subindextable.py Wed Nov 07 07:46:14 2007 +0100
@@ -548,7 +548,7 @@
else:
self.IndexChoice.Append(name)
self.ChoiceIndex.append(index)
- if choiceindex != wx.NOT_FOUND and choice == self.IndexChoice.GetString(choiceindex):
+ if choiceindex != wx.NOT_FOUND and choiceindex < self.IndexChoice.GetCount() and choice == self.IndexChoice.GetString(choiceindex):
self.IndexChoice.SetStringSelection(choice)
if self.Editable:
self.IndexChoice.Enable(self.IndexChoice.GetCount() != 0)