From ace37b660e92e7a2da7e91126fa6703ffe2a9b0e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 23 Feb 2018 11:57:11 -0800 Subject: [PATCH] Setting Eeschema white foreground for BW printing Keep any Eeschema color except background a fraction off of true white to ensure that BW printing shows the lines as black. Only the background is allowed to be white in an Eeschema printout. Fixes: lp:1662859 * https://bugs.launchpad.net/kicad/+bug/1662859 --- eeschema/eeschema.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eeschema/eeschema.cpp b/eeschema/eeschema.cpp index 5e4fd23e6..b2fdeea21 100644 --- a/eeschema/eeschema.cpp +++ b/eeschema/eeschema.cpp @@ -173,6 +173,12 @@ COLOR4D GetLayerColor( SCH_LAYER_ID aLayer ) void SetLayerColor( COLOR4D aColor, SCH_LAYER_ID aLayer ) { + // Do not allow non-background layers to be completely white. + // This ensures the BW printing recognizes that the colors should be + // printed black. + if( aColor == COLOR4D::WHITE && aLayer != LAYER_SCHEMATIC_BACKGROUND ) + aColor.Darken( 0.01 ); + unsigned layer = SCH_LAYER_INDEX( aLayer ); wxASSERT( layer < DIM( s_layerColor ) ); s_layerColor[layer] = aColor; -- 2.11.0