Eeschema plot: do not plot the hierarchy sheet symbol background in B&W mode.

if the the hierarchy sheet symbol background is not white, in B&W mode it is black,
and texts are not readable.

Fixes #4987
https://gitlab.com/kicad/code/kicad/issues/4987
This commit is contained in:
jean-pierre charras 2020-07-28 10:13:20 +02:00
parent 9ece12010b
commit 039b6fd5cf
1 changed files with 3 additions and 1 deletions

View File

@ -980,7 +980,9 @@ void SCH_SHEET::Plot( PLOTTER* aPlotter )
backgroundColor = aPlotter->RenderSettings()->GetLayerColor( LAYER_SHEET_BACKGROUND );
aPlotter->SetColor( backgroundColor );
aPlotter->Rect( m_pos, m_pos + m_size, FILLED_SHAPE, 1.0 );
// Do not fill shape in B&W mode, otherwise texts are unreadable
bool fill = aPlotter->GetColorMode();
aPlotter->Rect( m_pos, m_pos + m_size, fill ? FILLED_SHAPE : NO_FILL, 1.0 );
aPlotter->SetColor( borderColor );