Eeschema print: Do not print private graphics in symbols.

Fixes #11532
https://gitlab.com/kicad/code/kicad/issues/11532
This commit is contained in:
jean-pierre charras 2022-05-02 16:28:09 +02:00
parent ece15b6472
commit 50223c9337
1 changed files with 8 additions and 0 deletions

View File

@ -548,6 +548,10 @@ void LIB_SYMBOL::Print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffse
{ {
for( LIB_ITEM& item : m_drawings ) for( LIB_ITEM& item : m_drawings )
{ {
// Do not print private items
if( item.IsPrivate() )
continue;
if( item.Type() == LIB_SHAPE_T ) if( item.Type() == LIB_SHAPE_T )
{ {
LIB_SHAPE& shape = static_cast<LIB_SHAPE&>( item ); LIB_SHAPE& shape = static_cast<LIB_SHAPE&>( item );
@ -567,6 +571,10 @@ void LIB_SYMBOL::Print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffse
for( LIB_ITEM& item : m_drawings ) 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 // Do not draw items not attached to the current part
if( aUnit && item.m_unit && ( item.m_unit != aUnit ) ) if( aUnit && item.m_unit && ( item.m_unit != aUnit ) )
continue; continue;