Refactoring.
This commit is contained in:
@ -269,10 +269,8 @@ auto VAbstractCurve::ClosestPoint(QPointF scenePoint) const -> QPointF
|
||||
{
|
||||
return candidatePoint;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -1160,7 +1160,7 @@ auto VPiecePath::CurveSeamAllowanceSegment(const VContainer *data, const QVector
|
||||
const VSAPoint end = EndSegment(data, nodes, i);
|
||||
|
||||
const QVector<QPointF> points = curve->GetSegmentPoints(begin, end, reverse, piece);
|
||||
if (points.isEmpty())
|
||||
if (points.size() < 2)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
Reference in New Issue
Block a user