EDA_SHAPE::MakeEffectiveShapes(): protect against empty polygons.
Fixes #10713 https://gitlab.com/kicad/code/kicad/issues/10713
This commit is contained in:
parent
169881dcf1
commit
788c607d47
|
@ -1140,6 +1140,9 @@ std::vector<SHAPE*> EDA_SHAPE::MakeEffectiveShapes() const
|
|||
|
||||
case SHAPE_T::POLY:
|
||||
{
|
||||
if( GetPolyShape().OutlineCount() == 0 ) // malformed/empty polygon
|
||||
break;
|
||||
|
||||
SHAPE_LINE_CHAIN l = GetPolyShape().COutline( 0 );
|
||||
|
||||
l.Rotate( -DECIDEG2RAD( getParentOrientation() ) );
|
||||
|
|
Loading…
Reference in New Issue