Reset wxPGEditor singleton instance pointers in dtors. This is useful if wxPropertyGrid is being accessed from an external main loop.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -240,12 +240,12 @@ WX_PG_IMPLEMENT_INTERNAL_EDITOR_CLASS(SpinCtrl,
|
||||
wxPGEditor)
|
||||
|
||||
|
||||
// Trivial destructor.
|
||||
// Destructor. It is useful to reset the global pointer in it.
|
||||
wxPGSpinCtrlEditor::~wxPGSpinCtrlEditor()
|
||||
{
|
||||
wxPG_EDITOR(SpinCtrl) = NULL;
|
||||
}
|
||||
|
||||
|
||||
// Create controls and initialize event handling.
|
||||
wxPGWindowList wxPGSpinCtrlEditor::CreateControls( wxPropertyGrid* propgrid, wxPGProperty* property,
|
||||
const wxPoint& pos, const wxSize& sz ) const
|
||||
|
Reference in New Issue
Block a user