Bug in listBox.Delete()?

I'm using Python 2.2.3 and wxPython 2.4.1.2, and creating a listBox with
style

     wxLB_EXTENDED|wxLB_HSCROLL|wxLB_NEEDED_SB|wxLB_SORT

It appears that if you have such a list box with several items in it and
attempt to delete EITHER:

   1) the first and last items,

OR

   2) the last and next-to-last items

you get a wxAssertFailure:

     None: C++ assertion "wxAssertFailure" failed in
     c:\PROJECTS\wx\src\msw\listbox.cpp(249): invalid index in
     wxListBox::Delete

GetSelections() is returning the correct list. I can't seem to replicate
the problem with any other combination of items.

Known bug?

···

--------------------------------------
Gary H. Merrill
Director and Principal Scientist, New Applications
Data Exploration Sciences
GlaxoSmithKline Inc.
(919) 483-8456

Not that I know of. Do you have a small sample app that shows this problem?

···

gary.h.merrill@gsk.com wrote:

I'm using Python 2.2.3 and wxPython 2.4.1.2, and creating a listBox with
style

     wxLB_EXTENDED|wxLB_HSCROLL|wxLB_NEEDED_SB|wxLB_SORT

It appears that if you have such a list box with several items in it and
attempt to delete EITHER:

   1) the first and last items,

OR

   2) the last and next-to-last items

you get a wxAssertFailure:

     None: C++ assertion "wxAssertFailure" failed in
     c:\PROJECTS\wx\src\msw\listbox.cpp(249): invalid index in
     wxListBox::Delete

GetSelections() is returning the correct list. I can't seem to replicate
the problem with any other combination of items.

Known bug?

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!