diff --git a/pcbnew/import_gfx/graphics_importer_buffer.cpp b/pcbnew/import_gfx/graphics_importer_buffer.cpp index d8468d0b80..7c59f42792 100644 --- a/pcbnew/import_gfx/graphics_importer_buffer.cpp +++ b/pcbnew/import_gfx/graphics_importer_buffer.cpp @@ -23,6 +23,10 @@ */ #include + +#include +#include + #include "graphics_importer_buffer.h" using namespace std; @@ -55,6 +59,7 @@ void GRAPHICS_IMPORTER_BUFFER::AddArc( const VECTOR2D& aCenter, const VECTOR2D& void GRAPHICS_IMPORTER_BUFFER::AddPolygon( const std::vector< VECTOR2D >& aVertices, double aWidth ) { m_shapes.push_back( make_shape( aVertices, aWidth ) ); + m_shapes.back()->SetParentShapeIndex( m_shapeFillRules.size() - 1 ); }