Eeschema: fix crash when plotting in HPGL format.

This commit is contained in:
jean-pierre charras 2020-04-14 13:47:53 +02:00
parent 6148461484
commit a49deec278
1 changed files with 3 additions and 1 deletions

View File

@ -180,9 +180,11 @@ bool DIALOG_PLOT_SCHEMATIC::Plot_1_Page_HPGL( const wxString& aFileName,
bool aPlotFrameRef )
{
HPGL_PLOTTER* plotter = new HPGL_PLOTTER();
// Currently, plot units are in decimil
plotter->SetPageSettings( aPageInfo );
// Currently, plot units are in decimil
plotter->SetColorSettings( getColorSettings() );
plotter->SetColorMode( getModeColor() );
plotter->SetViewport( aPlot0ffset, IU_PER_MILS/10, aScale, false );
// Init :