From 366673d995ea9efc68df5420b98ab0dc7af92c77 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 --- 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 9d25eb702b..d6ac5157db 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -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 );