Bug fix for dangling symbols on pins.

Fixes https://gitlab.com/kicad/code/kicad/issues/9667
This commit is contained in:
Jeff Young 2021-12-07 21:38:43 +00:00
parent c4336de868
commit 3d97138d92
1 changed files with 6 additions and 4 deletions

View File

@ -228,10 +228,12 @@ EDA_ITEM* SCH_SYMBOL::Clone() const
void SCH_SYMBOL::ViewGetLayers( int aLayers[], int& aCount ) const
{
aCount = 3;
aLayers[0] = LAYER_DEVICE;
aLayers[1] = LAYER_DEVICE_BACKGROUND;
aLayers[2] = LAYER_SELECTION_SHADOWS;
aCount = 4;
aLayers[0] = LAYER_DANGLING; // Pins are drawn by their parent symbol, so the parent
// symbol needs to draw to LAYER_DANGLING
aLayers[1] = LAYER_DEVICE;
aLayers[2] = LAYER_DEVICE_BACKGROUND;
aLayers[3] = LAYER_SELECTION_SHADOWS;
}