diff --git a/src/libs/vpatterndb/vpiece.cpp b/src/libs/vpatterndb/vpiece.cpp index 6355f8a7b..0a04cf466 100644 --- a/src/libs/vpatterndb/vpiece.cpp +++ b/src/libs/vpatterndb/vpiece.cpp @@ -679,7 +679,7 @@ QVector VPiece::GetValidRecords() const && not d->m_path.at(indexStartPoint).IsExcluded() && indexEndPoint != -1 && not d->m_path.at(indexEndPoint).IsExcluded() - && record.startPoint < record.endPoint) + && indexStartPoint < indexEndPoint) { records.append(record); }