Fix broken logic for hidden pins.
Fixes https://gitlab.com/kicad/code/kicad/issues/11771
This commit is contained in:
parent
e857622dd4
commit
b710982875
|
@ -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 );
|
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
|
if( pin.IsVisible() )
|
||||||
// well-defined body.
|
{
|
||||||
|
// Note: the roots of the pins are always included for symbols that don't have
|
||||||
|
// a well-defined body.
|
||||||
|
|
||||||
if( aIncludePins && pin.IsVisible() )
|
if( aIncludePins )
|
||||||
bbox.Merge( pin.GetBoundingBox( false, true ) );
|
bbox.Merge( pin.GetBoundingBox( false, true ) );
|
||||||
else
|
else
|
||||||
bbox.Merge( pin.GetPinRoot() );
|
bbox.Merge( pin.GetPinRoot() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue