From de02bedd36b53fcc1a62399e51ec15b12ba57a6a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 26 Oct 2020 08:05:13 +0200 Subject: [PATCH] Cppcheck warning. --- src/libs/vtools/tools/drawTools/toolcurve/vtoolsplinepath.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolsplinepath.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolsplinepath.cpp index 652966374..93c398c09 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolsplinepath.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolsplinepath.cpp @@ -700,8 +700,7 @@ bool VToolSplinePath::IsMovable(int index) const { const auto splPath = VAbstractTool::data.GeometricObject(m_id); - //index == -1 - can delete, but decided to left - if (index == -1 || index < 1 || index > splPath->CountSubSpl()) + if (index < 1 || index > splPath->CountSubSpl()) { return false; }