Honour stroke colour in LIB_SHAPE.

Fixes https://gitlab.com/kicad/code/kicad/issues/11955
This commit is contained in:
Jeff Young 2022-07-10 10:47:04 -06:00
parent eb27a3f8b9
commit 1ce3744c70
1 changed files with 4 additions and 1 deletions

View File

@ -276,7 +276,10 @@ void LIB_SHAPE::print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffset
VECTOR2I pt1 = aTransform.TransformCoordinate( m_start ) + aOffset;
VECTOR2I pt2 = aTransform.TransformCoordinate( m_end ) + aOffset;
VECTOR2I c;
COLOR4D color = aSettings->GetLayerColor( LAYER_DEVICE );
COLOR4D color = GetStroke().GetColor();
if( color == COLOR4D::UNSPECIFIED )
color = aSettings->GetLayerColor( LAYER_DEVICE );
unsigned ptCount = 0;
VECTOR2I* buffer = nullptr;