From e135229ca69efb26790430e92a833f3287a278be Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 7 May 2020 17:42:55 -0400 Subject: [PATCH] Don't try to draw a zone that has no outline Fixes #4352 (cherry picked from commit 366673d995ea9efc68df5420b98ab0dc7af92c77) --- pcbnew/pcb_painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 5ca65f6bbe..50b4871cb4 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -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 );