Fixed how the list of files is converted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -963,11 +963,7 @@ public:
|
||||
}
|
||||
|
||||
for (int i=0; i<count; i++) {
|
||||
#if wxUSE_UNICODE
|
||||
PyList_SetItem(list, i, PyUnicode_FromWideChar(files[i], files[i].Len()));
|
||||
#else
|
||||
PyList_SetItem(list, i, PyString_FromString((const char*)files[i]));
|
||||
#endif
|
||||
PyList_SetItem(list, i, wx2PyString(files[i]));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
Reference in New Issue
Block a user