Refactoring.

This commit is contained in:
Roman Telezhynskyi 2023-10-10 11:08:57 +03:00
parent bbf7e24aa8
commit 6d471c5a55
2 changed files with 3 additions and 5 deletions

View File

@ -269,10 +269,8 @@ auto VAbstractCurve::ClosestPoint(QPointF scenePoint) const -> QPointF
{ {
return candidatePoint; return candidatePoint;
} }
else
{ return {};
return {};
}
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -1160,7 +1160,7 @@ auto VPiecePath::CurveSeamAllowanceSegment(const VContainer *data, const QVector
const VSAPoint end = EndSegment(data, nodes, i); const VSAPoint end = EndSegment(data, nodes, i);
const QVector<QPointF> points = curve->GetSegmentPoints(begin, end, reverse, piece); const QVector<QPointF> points = curve->GetSegmentPoints(begin, end, reverse, piece);
if (points.isEmpty()) if (points.size() < 2)
{ {
return {}; return {};
} }