Cppcheck warning.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user