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:
@@ -2976,7 +2976,12 @@ void wxDataViewColumn::SetResizeable(bool resizeable)
|
|||||||
|
|
||||||
void wxDataViewColumn::SetSortable(bool sortable)
|
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)
|
void wxDataViewColumn::SetSortOrder(bool ascending)
|
||||||
|
Reference in New Issue
Block a user