RegisterAdditionalEditors() to work even if no wxPropertyGrids created, in sample moved editor registration before first CreateGrid() call to prevent crash, removed wxPG_USE_WXMODULE support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1993,6 +1993,10 @@ void wxPropertyGridInterface::InitAllTypeHandlers()
|
||||
|
||||
void wxPropertyGridInterface::RegisterAdditionalEditors()
|
||||
{
|
||||
// Register editor classes, if necessary.
|
||||
if ( wxPGGlobalVars->m_mapEditorClasses.empty() )
|
||||
wxPropertyGrid::RegisterDefaultEditors();
|
||||
|
||||
#if wxUSE_SPINBTN
|
||||
wxPGRegisterEditorClass(SpinCtrl);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user