Fix a minor compil warning

This commit is contained in:
jean-pierre charras 2020-11-29 12:57:29 +01:00
parent 3b18fa84bf
commit 09a1137f11
1 changed files with 9 additions and 9 deletions

View File

@ -1381,9 +1381,9 @@ void CADSTAR_SCH_ARCHIVE_LOADER::loadShapeVertices( const std::vector<VERTEX>& a
wxASSERT_MSG(
prev->Type == VERTEX_TYPE::POINT, "First vertex should always be a point vertex" );
for( size_t i = 1; i < aCadstarVertices.size(); i++ )
for( size_t ii = 1; ii < aCadstarVertices.size(); ii++ )
{
cur = &aCadstarVertices.at( i );
cur = &aCadstarVertices.at( ii );
wxPoint startPoint = getKiCadPoint( prev->End );
wxPoint endPoint = getKiCadPoint( cur->End );
@ -1419,10 +1419,10 @@ void CADSTAR_SCH_ARCHIVE_LOADER::loadShapeVertices( const std::vector<VERTEX>& a
// Load the arc as a series of piece-wise segments
for( int i = 0; i < arcSegments.SegmentCount(); i++ )
for( int jj = 0; jj < arcSegments.SegmentCount(); jj++ )
{
wxPoint segStart = (wxPoint) arcSegments.Segment( i ).A;
wxPoint segEnd = (wxPoint) arcSegments.Segment( i ).B;
wxPoint segStart = (wxPoint) arcSegments.Segment( jj ).A;
wxPoint segEnd = (wxPoint) arcSegments.Segment( jj ).B;
loadGraphicStaightSegment( segStart, segEnd, aCadstarLineCodeID,
aCadstarSheetID, aKiCadSchLayerID, aMoveVector, aRotationAngleDeciDeg,