From 50223c9337c650563aa4cb30d07ad718ae7b07d7 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 2 May 2022 16:28:09 +0200 Subject: [PATCH] Eeschema print: Do not print private graphics in symbols. Fixes #11532 https://gitlab.com/kicad/code/kicad/issues/11532 --- eeschema/lib_symbol.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eeschema/lib_symbol.cpp b/eeschema/lib_symbol.cpp index 1c182c6092..52486569f0 100644 --- a/eeschema/lib_symbol.cpp +++ b/eeschema/lib_symbol.cpp @@ -548,6 +548,10 @@ void LIB_SYMBOL::Print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffse { for( LIB_ITEM& item : m_drawings ) { + // Do not print private items + if( item.IsPrivate() ) + continue; + if( item.Type() == LIB_SHAPE_T ) { LIB_SHAPE& shape = static_cast( item ); @@ -567,6 +571,10 @@ void LIB_SYMBOL::Print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffse for( LIB_ITEM& item : m_drawings ) { + // Do not print private items + if( item.IsPrivate() ) + continue; + // Do not draw items not attached to the current part if( aUnit && item.m_unit && ( item.m_unit != aUnit ) ) continue;