From 039b6fd5cfc9858b3bbce6ef3ae801e8b6e0db9c Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 28 Jul 2020 10:13:20 +0200 Subject: [PATCH] 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 --- eeschema/sch_sheet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_sheet.cpp b/eeschema/sch_sheet.cpp index 1317836e26..293b8fbe21 100644 --- a/eeschema/sch_sheet.cpp +++ b/eeschema/sch_sheet.cpp @@ -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 );