Avoid an endless recursion situation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2010-09-23 21:10:34 +00:00
parent a12482a357
commit a2d0722f48

View File

@ -2976,7 +2976,12 @@ void wxDataViewColumn::SetResizeable(bool resizeable)
void wxDataViewColumn::SetSortable(bool sortable)
{
wxDataViewColumnBase::SetSortable(sortable);
// wxDataViewColumnBase::SetSortable(sortable);
// Avoid endless recursion and just set the flag here
if (sortable)
m_flags |= wxDATAVIEW_COL_SORTABLE;
else
m_flags &= ~wxDATAVIEW_COL_SORTABLE;
}
void wxDataViewColumn::SetSortOrder(bool ascending)