Fix potential crash place.
--HG-- branch : develop
This commit is contained in:
parent
4263874d30
commit
c1c4768921
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user