Don't try to draw a zone that has no outline
Fixes #4352
(cherry picked from commit 366673d995
)
This commit is contained in:
parent
97dea6ede5
commit
e135229ca6
|
@ -1130,7 +1130,7 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone, int aLayer )
|
||||||
// Draw the outline
|
// Draw the outline
|
||||||
const SHAPE_POLY_SET* outline = aZone->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->SetStrokeColor( color );
|
||||||
m_gal->SetIsFill( false );
|
m_gal->SetIsFill( false );
|
||||||
|
|
Loading…
Reference in New Issue