diff --git a/common/plotters/GERBER_plotter.cpp b/common/plotters/GERBER_plotter.cpp index 03655dd92d..624065c555 100644 --- a/common/plotters/GERBER_plotter.cpp +++ b/common/plotters/GERBER_plotter.cpp @@ -910,10 +910,7 @@ void GERBER_PLOTTER::FlashPadRoundRect( const wxPoint& aPadPos, const wxSize& aS EDA_DRAW_MODE_T aTraceMode, void* aData ) { - GBR_METADATA* gbr_metadata; - - if( aData ) - gbr_metadata = static_cast( aData ); + GBR_METADATA* gbr_metadata = static_cast( aData ); // Currently, a Pad RoundRect is plotted as polygon. // TODO: use Aperture macro and flash it