router: fixed crash in HullIntersection() when the path has 0 or 1 points.
fixes: 8515
This commit is contained in:
parent
614787caae
commit
67f0bbc6d7
|
@ -266,6 +266,9 @@ void HullIntersection( const SHAPE_LINE_CHAIN& hull, const SHAPE_LINE_CHAIN& lin
|
|||
{
|
||||
SHAPE_LINE_CHAIN::INTERSECTIONS ips_raw;
|
||||
|
||||
if( line.PointCount() < 2 )
|
||||
return;
|
||||
|
||||
hull.Intersect( line, ips_raw );
|
||||
|
||||
for( const auto& p : ips_raw )
|
||||
|
|
Loading…
Reference in New Issue