Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 22834 → Rev 22835

/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetsetprop.cpp
384,11 → 384,7
else if (propertyType == "int")
{
matched = true;
if (PyObject_IsTrue(objValue) == 0)
success = obj->setProperty(propertyName, 0);
else if (PyObject_IsTrue(objValue) == 1)
success = obj->setProperty(propertyName, 1);
else if (PyInt_Check(objValue))
if (PyInt_Check(objValue))
success = obj->setProperty(propertyName, (int)PyInt_AsLong(objValue));
else if (PyLong_Check(objValue))
success = obj->setProperty(propertyName, (int)PyLong_AsLong(objValue));