Path.Area: fixed getShape with index

This commit is contained in:
Zheng, Lei
2017-03-21 13:16:14 +08:00
committed by wmayer
parent d447257e0b
commit b0e9d4b213

View File

@@ -218,7 +218,7 @@ PyObject* AreaPy::getShape(PyObject *args, PyObject *keywds)
PyObject *pcObj = Py_False;
short index=-1;
static char *kwlist[] = {"index","rebuild", NULL};
if (!PyArg_ParseTupleAndKeywords(args, keywds,"|hO",kwlist,&pcObj))
if (!PyArg_ParseTupleAndKeywords(args, keywds,"|hO",kwlist,&index,&pcObj))
return 0;
if(PyObject_IsTrue(pcObj))