Cppcheck warning.

This commit is contained in:
Roman Telezhynskyi 2020-10-26 08:05:13 +02:00
parent c6e2819587
commit de02bedd36

View File

@ -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;
}