Refactoring.
This commit is contained in:
parent
bbf7e24aa8
commit
6d471c5a55
|
@ -269,10 +269,8 @@ auto VAbstractCurve::ClosestPoint(QPointF scenePoint) const -> QPointF
|
||||||
{
|
{
|
||||||
return candidatePoint;
|
return candidatePoint;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
return {};
|
||||||
return {};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -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 {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user