Don't plot private symbol text.
Fixes https://gitlab.com/kicad/code/kicad/issues/11548
This commit is contained in:
parent
5d0d2201f3
commit
f14dc9e305
|
@ -625,6 +625,10 @@ void LIB_SYMBOL::Plot( PLOTTER* aPlotter, int aUnit, int aConvert, bool aBackgro
|
||||||
|
|
||||||
for( const LIB_ITEM& item : m_drawings )
|
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
|
// Lib Fields are not plotted here, because this plot function
|
||||||
// is used to plot schematic items, which have they own fields
|
// is used to plot schematic items, which have they own fields
|
||||||
if( item.Type() == LIB_FIELD_T )
|
if( item.Type() == LIB_FIELD_T )
|
||||||
|
|
|
@ -263,6 +263,9 @@ void LIB_TEXT::Plot( PLOTTER* plotter, bool aBackground, const VECTOR2I& offset,
|
||||||
{
|
{
|
||||||
wxASSERT( plotter != nullptr );
|
wxASSERT( plotter != nullptr );
|
||||||
|
|
||||||
|
if( IsPrivate() )
|
||||||
|
return;
|
||||||
|
|
||||||
if( aBackground )
|
if( aBackground )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue