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

This commit is contained in:
Tomasz Wlostowski 2021-12-31 15:27:09 +01:00
parent e1f32f13a2
commit 3fce15f442
1 changed files with 5 additions and 0 deletions

View File

@ -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 );
}