Rework plotting colors to ensure color settings are always available

This commit is contained in:
Jon Evans
2020-03-29 21:43:18 -04:00
parent 570ea62b64
commit 34aee50ae1
4 changed files with 16 additions and 21 deletions
+2 -2
View File
@@ -73,7 +73,7 @@
COLOR4D BRDITEMS_PLOTTER::getColor( LAYER_NUM aLayer )
{
COLOR4D color = m_colors->GetColor( aLayer );
COLOR4D color = ColorSettings()->GetColor( aLayer );
// A hack to avoid plotting a white item in white color, expecting the paper
// is also white: use a non white color:
@@ -393,7 +393,7 @@ void BRDITEMS_PLOTTER::PlotDimension( DIMENSION* aDim )
draw.SetWidth( aDim->GetWidth() );
draw.SetLayer( aDim->GetLayer() );
COLOR4D color = m_colors->GetColor( aDim->GetLayer() );
COLOR4D color = ColorSettings()->GetColor( aDim->GetLayer() );
// Set plot color (change WHITE to LIGHTGRAY because
// the white items are not seen on a white paper or screen