Removed property editor validation failure assertions when implicitly clearing selection. Added relevant notes into documentation of member functions that previously asserted.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1565,13 +1565,8 @@ bool wxPropertyGridPageState::PrepareToAddItem( wxPGProperty* property,
|
||||
#endif
|
||||
|
||||
// Make sure nothing is selected.
|
||||
if ( propGrid && propGrid->m_selected )
|
||||
{
|
||||
bool selRes = propGrid->ClearSelection();
|
||||
wxPG_CHECK_MSG_DBG( selRes,
|
||||
true,
|
||||
wxT("failed to deselect a property (editor probably had invalid value)") );
|
||||
}
|
||||
if ( propGrid )
|
||||
propGrid->ClearSelection(false);
|
||||
|
||||
// NULL parent == root parent
|
||||
if ( !scheduledParent )
|
||||
|
Reference in New Issue
Block a user