From f14dc9e305f07b1bb9feaeaec2c890d2356873cb Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 3 May 2022 19:40:59 +0100 Subject: [PATCH] Don't plot private symbol text. Fixes https://gitlab.com/kicad/code/kicad/issues/11548 --- eeschema/lib_symbol.cpp | 4 ++++ eeschema/lib_text.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/eeschema/lib_symbol.cpp b/eeschema/lib_symbol.cpp index 52486569f0..33c0a23d86 100644 --- a/eeschema/lib_symbol.cpp +++ b/eeschema/lib_symbol.cpp @@ -625,6 +625,10 @@ void LIB_SYMBOL::Plot( PLOTTER* aPlotter, int aUnit, int aConvert, bool aBackgro for( const LIB_ITEM& item : m_drawings ) { + // Do not plot private items + if( item.IsPrivate() ) + continue; + // Lib Fields are not plotted here, because this plot function // is used to plot schematic items, which have they own fields if( item.Type() == LIB_FIELD_T ) diff --git a/eeschema/lib_text.cpp b/eeschema/lib_text.cpp index 1f5c00c73a..e581b91e6f 100644 --- a/eeschema/lib_text.cpp +++ b/eeschema/lib_text.cpp @@ -263,6 +263,9 @@ void LIB_TEXT::Plot( PLOTTER* plotter, bool aBackground, const VECTOR2I& offset, { wxASSERT( plotter != nullptr ); + if( IsPrivate() ) + return; + if( aBackground ) return;