Skip to content
Snippets Groups Projects
Commit 093f3c62 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: fix list with > 1 size

parent 91b86997
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment