parent
bb579294a0
commit
c74b0943f3
|
@ -1229,8 +1229,8 @@ PLOTTER* StartPlotBoard( BOARD *aBoard, const PCB_PLOT_PARAMS *aPlotOpts, int aL
|
|||
AddGerberX2Attribute( plotter, aBoard, aLayer, not useX2mode );
|
||||
}
|
||||
|
||||
plotter->StartPlot( wxT( "1" ) );
|
||||
|
||||
if( plotter->StartPlot( wxT( "1" ) ) )
|
||||
{
|
||||
// Plot the frame reference if requested
|
||||
if( aPlotOpts->GetPlotFrameRef() )
|
||||
{
|
||||
|
@ -1253,6 +1253,7 @@ PLOTTER* StartPlotBoard( BOARD *aBoard, const PCB_PLOT_PARAMS *aPlotOpts, int aL
|
|||
|
||||
return plotter;
|
||||
}
|
||||
}
|
||||
|
||||
delete plotter->RenderSettings();
|
||||
delete plotter;
|
||||
|
|
Loading…
Reference in New Issue