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

Fixes #4352

(cherry picked from commit 366673d995)
This commit is contained in:
Jon Evans 2020-05-07 17:42:55 -04:00
parent 97dea6ede5
commit e135229ca6
1 changed files with 1 additions and 1 deletions

View File

@ -1130,7 +1130,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 );