diff --git a/src/libs/vpatterndb/vpiece.cpp b/src/libs/vpatterndb/vpiece.cpp index 6684a175f..4fdbd7b9d 100644 --- a/src/libs/vpatterndb/vpiece.cpp +++ b/src/libs/vpatterndb/vpiece.cpp @@ -1261,18 +1261,14 @@ QVector VPiece::CreatePassmark(const QVector &path, int prev if (not GetPassmarkPreviousSAPoints(path, previousIndex, passmarkSAPoint, data, previousSAPoint)) { - const QString errorMsg = QObject::tr("Cannot calculate a notch for point '%1' in piece '%2'.") - .arg(VPiecePath::NodeName(path, passmarkIndex, data), GetName()); - qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : qWarning() << errorMsg; + // No check here because it will cover valid cases return QVector(); // Something wrong } VSAPoint nextSAPoint; if (not GetPassmarkNextSAPoints(path, nextIndex, passmarkSAPoint, data, nextSAPoint)) { - const QString errorMsg = QObject::tr("Cannot calculate a notch for point '%1' in piece '%2'.") - .arg(VPiecePath::NodeName(path, passmarkIndex, data), GetName()); - qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : qWarning() << errorMsg; + // No check here because it will cover valid cases return QVector(); // Something wrong }