From 9346d76aa2388d2ab2e7d29115e1228efc2e4701 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 7 Apr 2019 12:16:18 +0200 Subject: [PATCH] fix bug when checking for str type in PropertyEnumeration::setPyObject --- src/App/PropertyStandard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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