Don't report missing color theme in B&W mode.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20923
This commit is contained in:
Jeff Young 2025-05-14 12:59:47 +01:00
parent 750dbe6336
commit 38385340b1
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ public:
bool GetSvgFitPagetoBoard() const { return m_svgFitPageToBoard; }
void SetBlackAndWhite( bool blackAndWhite ) { m_blackAndWhite = blackAndWhite; }
unsigned GetBlackAndWhite() const { return m_blackAndWhite; }
bool GetBlackAndWhite() const { return m_blackAndWhite; }
void SetSubtractMaskFromSilk( bool aSubtract ) { m_subtractMaskFromSilk = aSubtract; }
bool GetSubtractMaskFromSilk() const { return m_subtractMaskFromSilk; }

View File

@ -476,7 +476,7 @@ void PCB_PLOTTER::PlotJobToPlotOpts( PCB_PLOT_PARAMS& aOpts, JOB_EXPORT_PCB_PLOT
COLOR_SETTINGS* colors = mgr.GetColorSettings( aJob->m_colorTheme );
if( colors->GetFilename() != theme )
if( colors->GetFilename() != theme && !aOpts.GetBlackAndWhite() )
{
aReporter.Report( wxString::Format( _( "Color theme '%s' not found, will use theme from PCB Editor.\n" ),
theme ),