Pcbnew: draw shadow PCB_SHAPEs for locked items using continuous lines.

Using other shapes gives really strange and ugly results.
Fixes #16327
https://gitlab.com/kicad/code/kicad/-/issues/16327
This commit is contained in:
jean-pierre charras 2023-12-10 15:36:33 +01:00
parent 931cec862e
commit 057baf306f
1 changed files with 3 additions and 1 deletions

View File

@ -1735,7 +1735,9 @@ void PCB_PAINTER::draw( const PCB_SHAPE* aShape, int aLayer )
m_gal->SetFillColor( color );
m_gal->SetStrokeColor( color );
if( lineStyle <= LINE_STYLE::FIRST_TYPE )
// Note: on LAYER_LOCKED_ITEM_SHADOW always draw shadow shapes as continuous lines
// otherwise the look is very strange and ugly
if( lineStyle <= LINE_STYLE::FIRST_TYPE || aLayer == LAYER_LOCKED_ITEM_SHADOW )
{
switch( aShape->GetShape() )
{