Fixed bug: wxPGProperty::OnEvent() was never called if primary editor window was NULL (as could be if limited editing was used)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3279,7 +3279,9 @@ void wxPropertyGrid::OnCustomEditorEvent( wxCommandEvent &event )
|
||||
}
|
||||
}
|
||||
|
||||
if ( wnd && !buttonWasHandled )
|
||||
if ( !buttonWasHandled )
|
||||
{
|
||||
if ( wnd )
|
||||
{
|
||||
// First call editor class' event handler.
|
||||
const wxPGEditor* editor = selected->GetEditorClass();
|
||||
@@ -3297,6 +3299,7 @@ void wxPropertyGrid::OnCustomEditorEvent( wxCommandEvent &event )
|
||||
validationFailure = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Then the property's custom handler (must be always called, unless
|
||||
// validation failed).
|
||||
|
Reference in New Issue
Block a user