diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index cb5ae174e5..1a7634c1f3 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -159,12 +159,13 @@ //--------------------------------------------------------------------------- // Typemap for wxArrayString from Python sequence objects -%typemap(in) wxArrayString& { +%typemap(in) wxArrayString& (bool temp=False) { if (! PySequence_Check($input)) { PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); SWIG_fail; } $1 = new wxArrayString; + temp = True; int i, len=PySequence_Length($input); for (i=0; i