3D Viewer: Don't render zero-width circles

This commit is contained in:
Roberto Fernandez Bautista 2022-04-11 14:49:33 +01:00
parent 830f1891c2
commit 0e2429b5cc
1 changed files with 3 additions and 1 deletions

View File

@ -361,6 +361,8 @@ void BOARD_ADAPTER::createPadWithMargin( const PAD* aPad, CONTAINER_2D_BASE* aCo
const double radius3DU = TO_3DU( circle->GetRadius() + clearance.x );
const SFVEC2F center3DU = TO_SFVEC2F( circle->GetCenter() );
// Don't render zero radius circles
if( radius3DU != 0.0 )
aContainer->Add( new FILLED_CIRCLE_2D( center3DU, radius3DU, *aPad ) );
}
break;