Fix HPGL color mode being set.

This commit is contained in:
Alex Shvartzkop 2024-01-15 22:32:08 +03:00
parent 01e88d33aa
commit 57bc443f0b
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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
{