Workaround a mismatch between the wxRTTI class name and the wxPython

class name.  (I should check for others...)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-09 23:39:50 +00:00
parent 1049d39836
commit 97d2a1b925
5 changed files with 18 additions and 2 deletions

View File

@@ -540,8 +540,8 @@ PyObject* wxPyMake_wxObject(wxObject* source, bool checkEvtHandler) {
if (! target) {
// Otherwise make it the old fashioned way by making a
// new shadow object and putting this pointer in it.
wxClassInfo* info = source->GetClassInfo();
wxChar* name = (wxChar*)info->GetClassName();
wxClassInfo* info = source->GetClassInfo();
wxString name = info->GetClassName();
PyObject* klass = wxPyClassExists(name);
while (info && !klass) {
name = (wxChar*)info->GetBaseClassName1();