From 3d97138d92a33590d1c2962848540547ef5b0697 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 7 Dec 2021 21:38:43 +0000 Subject: [PATCH] Bug fix for dangling symbols on pins. Fixes https://gitlab.com/kicad/code/kicad/issues/9667 --- eeschema/sch_symbol.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/eeschema/sch_symbol.cpp b/eeschema/sch_symbol.cpp index 4627074c55..480f1814b7 100644 --- a/eeschema/sch_symbol.cpp +++ b/eeschema/sch_symbol.cpp @@ -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; }