Browse Source

GRPAHICS_IMPORTER_BUFFER: forgot to store the indices of the paths belonging to a compound shape

7.0
Tomasz Wlostowski 4 years ago
parent
commit
3fce15f442
  1. 5
      pcbnew/import_gfx/graphics_importer_buffer.cpp

5
pcbnew/import_gfx/graphics_importer_buffer.cpp

@ -23,6 +23,10 @@
*/
#include <eda_item.h>
#include <geometry/shape_line_chain.h>
#include <geometry/shape_poly_set.h>
#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<IMPORTED_POLYGON>( aVertices, aWidth ) );
m_shapes.back()->SetParentShapeIndex( m_shapeFillRules.size() - 1 );
}

Loading…
Cancel
Save