git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55919
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
RegisterDefaultEditors();
wxString name = editorClass->GetName();
+
+ // Existing editor under this name?
+ wxPGHashMapS2P::iterator vt_it = wxPGGlobalVars->m_mapEditorClasses.find(name);
+
+ wxCHECK_MSG( vt_it == wxPGGlobalVars->m_mapEditorClasses.end(),
+ (wxPGEditor*) vt_it->second,
+ "Editor with given name was already registered" );
+
wxPGGlobalVars->m_mapEditorClasses[name] = (void*)editorClass;
return editorClass;