Don't try to draw a zone that has no outline

Fixes #4352
This commit is contained in:
Jon Evans 2020-05-07 17:42:55 -04:00
parent bc0fc0bb3a
commit 366673d995
1 changed files with 1 additions and 1 deletions

View File

@ -1101,7 +1101,7 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone, int aLayer )
// Draw the outline
const SHAPE_POLY_SET* outline = aZone->Outline();
if( m_pcbSettings.m_zoneOutlines && outline )
if( m_pcbSettings.m_zoneOutlines && outline && outline->OutlineCount() > 0 )
{
m_gal->SetStrokeColor( color );
m_gal->SetIsFill( false );