From 57bc443f0b98a52308160759ef7c74fe58c6ab19 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 15 Jan 2024 22:32:08 +0300 Subject: [PATCH] Fix HPGL color mode being set. --- eeschema/sch_plotter.cpp | 1 - include/plotters/plotter_hpgl.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_plotter.cpp b/eeschema/sch_plotter.cpp index 46a9884293..d1618ec0e1 100644 --- a/eeschema/sch_plotter.cpp +++ b/eeschema/sch_plotter.cpp @@ -766,7 +766,6 @@ bool SCH_PLOTTER::plotOneSheetHpgl( const wxString& aFileName, plotter->SetPageSettings( aPageInfo ); plotter->SetRenderSettings( aRenderSettings ); plotter->RenderSettings()->LoadColors( m_colorSettings ); - plotter->SetColorMode( !aPlotSettings.m_blackAndWhite ); plotter->SetViewport( aPlot0ffset, schIUScale.IU_PER_MILS/10, aScale, false ); // TODO this could be configurable diff --git a/include/plotters/plotter_hpgl.h b/include/plotters/plotter_hpgl.h index 063814b49f..3e07d57082 100644 --- a/include/plotters/plotter_hpgl.h +++ b/include/plotters/plotter_hpgl.h @@ -68,6 +68,9 @@ public: */ virtual bool EndPlot() override; + /// HPGL doesn't handle color + virtual void SetColorMode( bool aColorMode ) override {}; + /// HPGL doesn't handle line thickness or color virtual void SetCurrentLineWidth( int width, void* aData = nullptr ) override {