Re: [wxPython-dev] Re: wx.RadioBox crash
David Surovell wrote:
The code in wxRadioBoxBase::GetNextItem (src/common/radiocmn.cpp) also
needs some divide by zero protection.
adding the following at line 59 should fix it:
if ((numCols <= 0) || (numRows <= 0))
return 0;
The GTK code has a number of places where similar checks should be
inserted.
The check is not necessary, if GetColumnCount() returns 1 even when
there is nothing to display.
But GTK does not derive from wxRadioBoxBase and is a different problem…