altium: fix coding style, remove useless check

This commit is contained in:
Thomas Pointhuber 2020-10-22 13:44:25 +02:00
parent a6f6d44026
commit 06e9a21791
1 changed files with 6 additions and 9 deletions

View File

@ -146,12 +146,9 @@ void ALTIUM_PCB::HelperDrawsegmentSetLocalCoord( PCB_SHAPE* aShape, uint16_t aCo
void HelperShapeLineChainFromAltiumVertices(
SHAPE_LINE_CHAIN& line, const std::vector<ALTIUM_VERTICE>& vertices )
SHAPE_LINE_CHAIN& aLine, const std::vector<ALTIUM_VERTICE>& aVertices )
{
if( vertices.empty() )
THROW_IO_ERROR( "no vertices which can be interpreted" );
for( auto& vertice : vertices )
for( auto& vertice : aVertices )
{
if( vertice.isRound )
{
@ -171,20 +168,20 @@ void HelperShapeLineChainFromAltiumVertices(
if( GetLineLength( arcStart, vertice.position )
< GetLineLength( arcEnd, vertice.position ) )
{
line.Append( SHAPE_ARC( vertice.center, arcStart, -angle ) );
aLine.Append( SHAPE_ARC( vertice.center, arcStart, -angle ) );
}
else
{
line.Append( SHAPE_ARC( vertice.center, arcEnd, angle ) );
aLine.Append( SHAPE_ARC( vertice.center, arcEnd, angle ) );
}
}
else
{
line.Append( vertice.position );
aLine.Append( vertice.position );
}
}
line.SetClosed( true );
aLine.SetClosed( true );
}