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();