parent
3c27617782
commit
abc605fcfa
|
@ -377,7 +377,7 @@ public:
|
||||||
wxString oldPath = aConfig->GetPath();
|
wxString oldPath = aConfig->GetPath();
|
||||||
NETCLASSES::const_iterator nc = m_Pt_param->begin();
|
NETCLASSES::const_iterator nc = m_Pt_param->begin();
|
||||||
|
|
||||||
for( int index = 0; index <= m_Pt_param->GetCount(); ++index )
|
for( unsigned index = 0; index <= m_Pt_param->GetCount(); ++index )
|
||||||
{
|
{
|
||||||
wxString path = "";
|
wxString path = "";
|
||||||
NETCLASSPTR netclass;
|
NETCLASSPTR netclass;
|
||||||
|
|
|
@ -197,7 +197,7 @@ bool ConvertOutlineToPolygon( std::vector<DRAWSEGMENT*>& aSegList, SHAPE_POLY_SE
|
||||||
wxPoint prevPt;
|
wxPoint prevPt;
|
||||||
|
|
||||||
// Find edge point with minimum x, this should be in the outer polygon
|
// Find edge point with minimum x, this should be in the outer polygon
|
||||||
// which will define the perimeter Edge.Cuts polygon.
|
// which will define the perimeter polygon polygon.
|
||||||
wxPoint xmin = wxPoint( INT_MAX, 0 );
|
wxPoint xmin = wxPoint( INT_MAX, 0 );
|
||||||
int xmini = 0;
|
int xmini = 0;
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ bool ConvertOutlineToPolygon( std::vector<DRAWSEGMENT*>& aSegList, SHAPE_POLY_SE
|
||||||
// The first DRAWSEGMENT is in 'graphic', ok to remove it from 'items'
|
// The first DRAWSEGMENT is in 'graphic', ok to remove it from 'items'
|
||||||
segList.erase( segList.begin() + xmini );
|
segList.erase( segList.begin() + xmini );
|
||||||
|
|
||||||
// Output the Edge.Cuts perimeter as circle or polygon.
|
// Output the outline perimeter as polygon.
|
||||||
if( graphic->GetShape() == S_CIRCLE )
|
if( graphic->GetShape() == S_CIRCLE )
|
||||||
{
|
{
|
||||||
int steps = std::max<int>( 4, GetArcToSegmentCount( graphic->GetRadius(), aTolerance, 360.0 ) );
|
int steps = std::max<int>( 4, GetArcToSegmentCount( graphic->GetRadius(), aTolerance, 360.0 ) );
|
||||||
|
|
Loading…
Reference in New Issue