Don't attempt to render degenerate 3D shapes.

Sentry KICAD-382
This commit is contained in:
Jeff Young 2023-09-04 22:10:47 +01:00
parent ea6d64e996
commit 70bbaae670
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ void BOARD_ADAPTER::addShape( const PCB_SHAPE* aShape, CONTAINER_2D_BASE* aConta
if( inner_radius3DU < 0 )
inner_radius3DU = 0.0;
if( outer_radius3DU == 0.0 )
if( outer_radius3DU <= inner_radius3DU )
{
// Don't attempt to render degenerate shapes
}