Fix typo.

Fixes https://gitlab.com/kicad/code/kicad/issues/11769
This commit is contained in:
Jeff Young 2022-06-08 23:52:44 +01:00
parent ec40a98fe2
commit 6e50a3518f
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ void LIB_TEXTBOX::Plot( PLOTTER* aPlotter, bool aBackground, const VECTOR2I& aOf
if( penWidth > 0 )
{
if( !aPlotter->GetColorMode() || color != COLOR4D::UNSPECIFIED )
if( !aPlotter->GetColorMode() || color == COLOR4D::UNSPECIFIED )
color = aPlotter->RenderSettings()->GetLayerColor( LAYER_DEVICE );
if( lineStyle == PLOT_DASH_TYPE::DEFAULT )