Reset sorting column index in generic wxDataViewCtrl when clearing columns.
Otherwise we could continue to use the now invalid index for sorting. Closes #15803. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5112,6 +5112,7 @@ bool wxDataViewCtrl::ClearColumns()
|
|||||||
{
|
{
|
||||||
SetExpanderColumn(NULL);
|
SetExpanderColumn(NULL);
|
||||||
m_cols.Clear();
|
m_cols.Clear();
|
||||||
|
m_sortingColumnIdx = wxNOT_FOUND;
|
||||||
m_colsBestWidths.clear();
|
m_colsBestWidths.clear();
|
||||||
|
|
||||||
m_clientArea->ClearCurrentColumn();
|
m_clientArea->ClearCurrentColumn();
|
||||||
|
Reference in New Issue
Block a user