Cppcheck warning.
This commit is contained in:
parent
c6e2819587
commit
de02bedd36
|
@ -700,8 +700,7 @@ bool VToolSplinePath::IsMovable(int index) const
|
|||
{
|
||||
const auto splPath = VAbstractTool::data.GeometricObject<VSplinePath>(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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user