Clear grid selection more consistently prior clear operations; improved Clear() tests (fixes #10497)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -268,6 +268,15 @@ void wxPropertyGridPageState::InitNonCatMode()
|
||||
|
||||
void wxPropertyGridPageState::DoClear()
|
||||
{
|
||||
if ( m_pPropGrid->GetState() == this )
|
||||
{
|
||||
m_pPropGrid->ClearSelection(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_selected = NULL;
|
||||
}
|
||||
|
||||
m_regularArray.Empty();
|
||||
if ( m_abcArray )
|
||||
m_abcArray->Empty();
|
||||
@@ -280,8 +289,6 @@ void wxPropertyGridPageState::DoClear()
|
||||
|
||||
m_virtualHeight = 0;
|
||||
m_vhCalcPending = 0;
|
||||
|
||||
m_selected = NULL;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user