diff --git a/common/eda_shape.cpp b/common/eda_shape.cpp index 33511dac43..53a51bce81 100644 --- a/common/eda_shape.cpp +++ b/common/eda_shape.cpp @@ -1140,6 +1140,9 @@ std::vector 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() ) );