From b846a981994fea9b7f5131b2a65312c387e8e1ed Mon Sep 17 00:00:00 2001 From: Patrick Pereira Date: Mon, 18 Apr 2016 11:48:39 -0400 Subject: [PATCH] Pcbnew: improve footprint edge plot logic. --- pcbnew/plot_brditems_plotter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pcbnew/plot_brditems_plotter.cpp b/pcbnew/plot_brditems_plotter.cpp index e9d82c359e..4634c3915f 100644 --- a/pcbnew/plot_brditems_plotter.cpp +++ b/pcbnew/plot_brditems_plotter.cpp @@ -354,10 +354,8 @@ void BRDITEMS_PLOTTER::Plot_Edges_Modules() { EDGE_MODULE* edge = dyn_cast( item ); - if( !edge || !m_layerMask[edge->GetLayer()] ) - continue; - - Plot_1_EdgeModule( edge ); + if( edge && m_layerMask[edge->GetLayer()] ) + Plot_1_EdgeModule( edge ); } } }