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

Using other shapes gives really strange and ugly results.
From master branch
Fixes #16327
https://gitlab.com/kicad/code/kicad/-/issues/16327
This commit is contained in:
jean-pierre charras 2023-12-10 15:51:14 +01:00
parent f17c4cceac
commit 0d330051ed
1 changed files with 3 additions and 1 deletions

View File

@ -1655,7 +1655,9 @@ void PCB_PAINTER::draw( const PCB_SHAPE* aShape, int aLayer )
m_gal->SetFillColor( color );
m_gal->SetStrokeColor( color );
if( lineStyle <= PLOT_DASH_TYPE::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 <= PLOT_DASH_TYPE::FIRST_TYPE || aLayer == LAYER_LOCKED_ITEM_SHADOW )
{
switch( aShape->GetShape() )
{