get_setting_boolean() -> bool

This commit is contained in:
Thomas Holder
2019-10-21 14:15:34 +02:00
parent 30dfb024de
commit 2315503ba7

View File

@@ -8036,7 +8036,7 @@ PyObject *ExecutiveGetSettingOfType(PyMOLGlobals * G, int index,
case cSetting_boolean:
{
int value = SettingGet_b(G, set_ptr2, set_ptr1, index);
result = Py_BuildValue("i", value);
result = PyBool_FromLong(value);
}
break;
case cSetting_int: