Part: when replacing PyArg_ParseTupleAndKeywords with Base::Wrapped_ParseTupleAndKeywords then in a few cases the negation of the expression has been removed.

See also: https://forum.freecad.org/viewtopic.php?t=80958
This commit is contained in:
wmayer
2023-09-06 11:52:14 +02:00
committed by wwmayer
parent 2a65715248
commit e6d350e719
2 changed files with 12 additions and 12 deletions

View File

@@ -562,8 +562,8 @@ PyObject* GeometryCurvePy::projectPoint(PyObject *args, PyObject* kwds)
PyObject *v;
const char *meth = "NearestPoint";
static const std::array<const char *, 3> kwlist{"Point", "Method", nullptr};
if (Base::Wrapped_ParseTupleAndKeywords(args, kwds, "O!|s", kwlist,
&Base::VectorPy::Type, &v, &meth)) {
if (!Base::Wrapped_ParseTupleAndKeywords(args, kwds, "O!|s", kwlist,
&Base::VectorPy::Type, &v, &meth)) {
return nullptr;
}