From 16667717a2f8b3ba2bbdabaef662e420369b7e45 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 4 Jul 2022 12:00:44 +0200 Subject: [PATCH] Pcbnew, printing in B&W: never draw the background color. Otherwise a black background is printed. Fixes #11625 https://gitlab.com/kicad/code/kicad/issues/11625 --- common/board_printout.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/board_printout.cpp b/common/board_printout.cpp index a03e35b6ff..4828a92879 100644 --- a/common/board_printout.cpp +++ b/common/board_printout.cpp @@ -116,6 +116,10 @@ void BOARD_PRINTOUT::DrawPage( const wxString& aLayerName, int aPageNum, int aPa { for( int i = 0; i < LAYER_ID_COUNT; ++i ) dstSettings->SetLayerColor( i, COLOR4D::BLACK ); + + // In B&W mode, draw the background only in wxhite, because any other color + // will be replaced by a black background + dstSettings->SetBackgroundColor( COLOR4D::WHITE ); } else // color enabled {