diff --git a/Code/Wrappers/SWIG/itkBase.i b/Code/Wrappers/SWIG/itkBase.i index ae402b15e0420c6fba63f3edb912b63cdac3d3f3..65654234b3e584451b44b7bf67e3b1a034447d44 100644 --- a/Code/Wrappers/SWIG/itkBase.i +++ b/Code/Wrappers/SWIG/itkBase.i @@ -70,13 +70,15 @@ { $result = PyList_New( $1.size() ); Py_ssize_t i = 0; - for (std::list< std::string >::const_iterator it = $1.begin(); it != $1.end(); ++it ) + for (std::list< std::string >::const_iterator it = $1.begin(); + it != $1.end(); + ++it, ++i ) { PyList_SetItem( $result, i, PyString_FromString( it->c_str() ) ); } } - + class itkIndent { public: ~itkIndent();