From b0e9d4b213b2edfe09f540ccadd1303aa437fafe Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 21 Mar 2017 13:16:14 +0800 Subject: [PATCH] Path.Area: fixed getShape with index --- src/Mod/Path/App/AreaPyImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/App/AreaPyImp.cpp b/src/Mod/Path/App/AreaPyImp.cpp index a28cdf2211..a648a6925f 100644 --- a/src/Mod/Path/App/AreaPyImp.cpp +++ b/src/Mod/Path/App/AreaPyImp.cpp @@ -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))