Fix potential crash place.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-09-09 18:49:59 +03:00
parent 4263874d30
commit c1c4768921

View File

@ -205,7 +205,7 @@ QVector<T> VAbstractPiece::CorrectEquidistantPoints(const QVector<T> &points, bo
} }
} }
if (buf2.first() != buf2.last()) if (not buf2.isEmpty() && buf2.first() != buf2.last())
{ {
buf2.append(buf2.first()); buf2.append(buf2.first());
} }