Changes to ensure that GDI objects returned from Python methods are
copied, not just left as references. The old way was counter-intuitive for Python. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -402,8 +402,10 @@ PyObject* wxPyConstructObject(void* ptr,
|
||||
}
|
||||
|
||||
char buff[64]; // should always be big enough...
|
||||
|
||||
sprintf(buff, "%sPtr", className);
|
||||
|
||||
wxASSERT_MSG(wxPython_dict, "wxPython_dict is not set yet!!");
|
||||
|
||||
PyObject* classobj = PyDict_GetItemString(wxPython_dict, buff);
|
||||
if (! classobj) {
|
||||
char temp[128];
|
||||
|
Reference in New Issue
Block a user