From ae9175927b358b0945a363a4dd6a94bef229f270 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Sat, 10 Feb 2024 08:26:52 -0500 Subject: [PATCH] Fix broken schematic pin selection caused by commit 1ac5666164. --- eeschema/sch_pin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_pin.cpp b/eeschema/sch_pin.cpp index 09367a07fd..d2fc5891cb 100644 --- a/eeschema/sch_pin.cpp +++ b/eeschema/sch_pin.cpp @@ -416,8 +416,10 @@ const BOX2I SCH_PIN::GetBoundingBox( bool aIncludeInvisiblePins, bool aIncludeNa BOX2I r; if( m_libPin ) - m_libPin->GetBoundingBox( aIncludeInvisiblePins, aIncludeNameAndNumber, - aIncludeElectricalType ); + r = m_libPin->GetBoundingBox( aIncludeInvisiblePins, aIncludeNameAndNumber, + aIncludeElectricalType ); + else + wxFAIL; r.RevertYAxis();