Remove checks those cover valid case of passmark collapse.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2018-09-29 19:36:55 +03:00
parent 9ab6b4b842
commit 4f7f907d8d

View File

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