# HG changeset patch # User lbessard # Date 1194417974 -3600 # Node ID 70f96abd8ecde410b894ff3b280a0d1d519f04e8 # Parent adf4a929cf8b678622f9ce4a7b7a301150020300 Bug on RefreshList in subindextable.py fixed diff -r adf4a929cf8b -r 70f96abd8ecd objdictgen/subindextable.py --- 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)