From a49deec278b0e8b4f1761cf35a463f97a7d6caf8 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 14 Apr 2020 13:47:53 +0200 Subject: [PATCH] Eeschema: fix crash when plotting in HPGL format. --- eeschema/plot_schematic_HPGL.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/plot_schematic_HPGL.cpp b/eeschema/plot_schematic_HPGL.cpp index 7bfc5a4957..725329e955 100644 --- a/eeschema/plot_schematic_HPGL.cpp +++ b/eeschema/plot_schematic_HPGL.cpp @@ -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 :