From 5ef6045feab097cbd583212977005faa86d79512 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 3 Mar 2024 22:59:32 +0100 Subject: [PATCH] Part: fixes #12274: Incorrect calls in ConePyImp --- src/Mod/Part/App/ConePyImp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mod/Part/App/ConePyImp.cpp b/src/Mod/Part/App/ConePyImp.cpp index cfc127199f..b4a4241a75 100644 --- a/src/Mod/Part/App/ConePyImp.cpp +++ b/src/Mod/Part/App/ConePyImp.cpp @@ -118,7 +118,7 @@ int ConePy::PyInit(PyObject* args, PyObject* kwds) PyObject *pCone; static const std::array keywords_c{"Cone", nullptr}; PyErr_Clear(); - if (Base::Wrapped_ParseTupleAndKeywords(args, kwds, "O!d", keywords_c, + if (Base::Wrapped_ParseTupleAndKeywords(args, kwds, "O!", keywords_c, &(ConePy::Type), &pCone)) { ConePy* pcCone = static_cast(pCone); Handle(Geom_ConicalSurface) pcone = Handle(Geom_ConicalSurface)::DownCast @@ -138,7 +138,6 @@ int ConePy::PyInit(PyObject* args, PyObject* kwds) PyErr_SetString(PyExc_TypeError, "Cone constructor accepts:\n" "-- empty parameter list\n" "-- Cone\n" - "-- Cone, Distance\n" "-- Point1, Point2, Radius1, Radius2\n" "-- Point1, Point2, Point3, Point4"); return -1;