Don't attempt to render degenerate 3D shapes.

Sentry KICAD-382

(cherry picked from commit 70bbaae670)
This commit is contained in:
Jeff Young 2023-09-04 22:10:47 +01:00
parent 4d46e0ceb7
commit 058a0bbf93
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,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
}