Browse Source

fix a compil warning.

Fix a few comments.
pull/13/head
jean-pierre charras 7 years ago
parent
commit
abc605fcfa
  1. 2
      pcbnew/board_design_settings.cpp
  2. 4
      pcbnew/convert_drawsegment_list_to_polygon.cpp

2
pcbnew/board_design_settings.cpp

@ -377,7 +377,7 @@ public:
wxString oldPath = aConfig->GetPath();
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 = "";
NETCLASSPTR netclass;

4
pcbnew/convert_drawsegment_list_to_polygon.cpp

@ -197,7 +197,7 @@ bool ConvertOutlineToPolygon( std::vector<DRAWSEGMENT*>& aSegList, SHAPE_POLY_SE
wxPoint prevPt;
// 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 );
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'
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 )
{
int steps = std::max<int>( 4, GetArcToSegmentCount( graphic->GetRadius(), aTolerance, 360.0 ) );

Loading…
Cancel
Save