From 07d2e0892019f1242749af33c892fa62780e5cff Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 17 Jul 2020 11:11:27 +0200 Subject: [PATCH] PVS: V524 It is odd that the body of 'getLastUKnotIndex' function is fully equivalent to the body of 'getFirstUKnotIndex' function --- src/Mod/Part/App/Geom2d/BSplineCurve2dPyImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/App/Geom2d/BSplineCurve2dPyImp.cpp b/src/Mod/Part/App/Geom2d/BSplineCurve2dPyImp.cpp index 724e976a5a..e0f7a8238a 100644 --- a/src/Mod/Part/App/Geom2d/BSplineCurve2dPyImp.cpp +++ b/src/Mod/Part/App/Geom2d/BSplineCurve2dPyImp.cpp @@ -738,7 +738,7 @@ Py::Object BSplineCurve2dPy::getLastUKnotIndex(void) const #if PY_MAJOR_VERSION >= 3 return Py::Long(curve->LastUKnotIndex()); #else - return Py::Int(curve->FirstUKnotIndex()); + return Py::Int(curve->LastUKnotIndex()); #endif }