Commit b2fcd3df authored by bonnell's avatar bonnell

Fix problem with converting pydict to mapnode, causing test failure

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@16125 18c085ea-50e0-402c-830e-de6fd14e8384
parent 35959a51
......@@ -187,8 +187,7 @@ PyDict_To_MapNode(PyObject *obj, MapNode &mn)
{
// process as doubleVector
doubleVector mval;
mval.push_back((double)PyInt_AS_LONG(item));
for (Py_ssize_t i = 1; i < PySequence_Size(value); ++i)
for (Py_ssize_t i = 0; i < PySequence_Size(value); ++i)
{
item = PySequence_GetItem(value, i);
if (PyFloat_Check(item))
......@@ -201,8 +200,7 @@ PyDict_To_MapNode(PyObject *obj, MapNode &mn)
else
{
intVector mval;
mval.push_back(PyInt_AS_LONG(item));
for (Py_ssize_t i = 1; i < PySequence_Size(value); ++i)
for (Py_ssize_t i = 0; i < PySequence_Size(value); ++i)
{
item = PySequence_GetItem(value, i);
mval.push_back(PyInt_AS_LONG(item));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment