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
This commit is contained in:
Seth Hillbrand 2018-02-23 11:57:11 -08:00 committed by Wayne Stambaugh
parent 2473cf6d45
commit 948396024b
1 changed files with 6 additions and 0 deletions

View File

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