Browse Source

Fix broken logic for hidden pins.

Fixes https://gitlab.com/kicad/code/kicad/issues/11771
7.0
Jeff Young 4 years ago
parent
commit
b710982875
  1. 15
      eeschema/lib_symbol.cpp

15
eeschema/lib_symbol.cpp

@ -930,13 +930,16 @@ const EDA_RECT LIB_SYMBOL::GetBodyBoundingBox( int aUnit, int aConvert, bool aIn
{
const LIB_PIN& pin = static_cast<const LIB_PIN&>( item );
// Note: the roots of the pins are always included for symbols that don't have a
// well-defined body.
if( pin.IsVisible() )
{
// Note: the roots of the pins are always included for symbols that don't have
// a well-defined body.
if( aIncludePins && pin.IsVisible() )
bbox.Merge( pin.GetBoundingBox( false, true ) );
else
bbox.Merge( pin.GetPinRoot() );
if( aIncludePins )
bbox.Merge( pin.GetBoundingBox( false, true ) );
else
bbox.Merge( pin.GetPinRoot() );
}
}
else
{

Loading…
Cancel
Save