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:
parent
931cec862e
commit
057baf306f
|
@ -1735,7 +1735,9 @@ void PCB_PAINTER::draw( const PCB_SHAPE* aShape, int aLayer )
|
||||||
m_gal->SetFillColor( color );
|
m_gal->SetFillColor( color );
|
||||||
m_gal->SetStrokeColor( 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() )
|
switch( aShape->GetShape() )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue