diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index 898c22c4b4..483d1bbf38 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -508,7 +508,7 @@ void PropertyEnumeration::setPyObject(PyObject *value) #endif } #if PY_MAJOR_VERSION < 3 - if (PyString_Check(item)) { + else if (PyString_Check(item)) { values[i] = PyString_AsString(item); } #endif