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:
parent
9ece12010b
commit
039b6fd5cf
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue