From 3196857449687a3fa60bbc27e506aebe0dd00b41 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 5 Apr 2022 12:05:49 +0100 Subject: [PATCH] Fix incorrectly initialized variable. The SCH_ITEM default is LAYER_WIRE, which we don't want for a symbol. Fixes https://gitlab.com/kicad/code/kicad/issues/11307 --- eeschema/sch_symbol.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/sch_symbol.cpp b/eeschema/sch_symbol.cpp index 83e8b36e75..d9779baf70 100644 --- a/eeschema/sch_symbol.cpp +++ b/eeschema/sch_symbol.cpp @@ -193,6 +193,7 @@ SCH_SYMBOL::SCH_SYMBOL( const SCH_SYMBOL& aSymbol ) : void SCH_SYMBOL::Init( const VECTOR2I& pos ) { + m_layer = LAYER_DEVICE; m_pos = pos; m_unit = 1; // In multi unit chip - which unit to draw. m_convert = LIB_ITEM::LIB_CONVERT::BASE; // De Morgan Handling