Don't plot private symbol text.

Fixes https://gitlab.com/kicad/code/kicad/issues/11548
This commit is contained in:
Jeff Young 2022-05-03 19:40:59 +01:00
parent 5d0d2201f3
commit f14dc9e305
2 changed files with 7 additions and 0 deletions

View File

@ -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 )

View File

@ -263,6 +263,9 @@ void LIB_TEXT::Plot( PLOTTER* plotter, bool aBackground, const VECTOR2I& offset,
{
wxASSERT( plotter != nullptr );
if( IsPrivate() )
return;
if( aBackground )
return;