Ticket #15420 (closed defect: fixed)
MaxWidthCalculator bug in wxDataViewCtrl
|Reported by:||Spencer_Parkin||Owned by:|
While using the wxDataViewCtrl, if the user tries to fit a column to optimal width, this may fail with an index out-of-bounds error.
I believe that the problem is in the MaxWidthCalculator class that is defined locally within the function GetBestColumnWidth of wxDataViewCtrl. This class erroneously uses the "m_column" member to index into the columns of the control.
The wxDataViewCtrl should support a routine called something like "GetModelColumnAt", which searches its column list for the column having the given identifier, which identifier _is not_ an index.
For more information about this bug, please see the following post in wxForum.
I would submit a patch, but I am not familiar with SVN.