GRPAHICS_IMPORTER_BUFFER: forgot to store the indices of the paths belonging to a compound shape
This commit is contained in:
parent
e1f32f13a2
commit
3fce15f442
|
@ -23,6 +23,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <eda_item.h>
|
#include <eda_item.h>
|
||||||
|
|
||||||
|
#include <geometry/shape_line_chain.h>
|
||||||
|
#include <geometry/shape_poly_set.h>
|
||||||
|
|
||||||
#include "graphics_importer_buffer.h"
|
#include "graphics_importer_buffer.h"
|
||||||
|
|
||||||
using namespace std;
|
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 )
|
void GRAPHICS_IMPORTER_BUFFER::AddPolygon( const std::vector< VECTOR2D >& aVertices, double aWidth )
|
||||||
{
|
{
|
||||||
m_shapes.push_back( make_shape<IMPORTED_POLYGON>( aVertices, aWidth ) );
|
m_shapes.push_back( make_shape<IMPORTED_POLYGON>( aVertices, aWidth ) );
|
||||||
|
m_shapes.back()->SetParentShapeIndex( m_shapeFillRules.size() - 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue