diff --git a/src/libs/vlayout/vabstractpiece.h b/src/libs/vlayout/vabstractpiece.h index 16d37b03a..8650b0f18 100644 --- a/src/libs/vlayout/vabstractpiece.h +++ b/src/libs/vlayout/vabstractpiece.h @@ -205,7 +205,7 @@ QVector VAbstractPiece::CorrectEquidistantPoints(const QVector &points, bo } } - if (buf2.first() != buf2.last()) + if (not buf2.isEmpty() && buf2.first() != buf2.last()) { buf2.append(buf2.first()); }