Remove vestigial coord flip code.

This commit is contained in:
Jeff Young 2024-05-08 11:27:57 +01:00
parent 25ebf99b9a
commit 20bb82a011
1 changed files with 1 additions and 10 deletions

View File

@ -599,16 +599,7 @@ const BOX2I SCH_FIELD::GetBoundingBox() const
TRANSFORM transform;
if( m_parent && m_parent->Type() == SCH_SYMBOL_T )
{
SCH_SYMBOL* parentSymbol = static_cast<SCH_SYMBOL*>( m_parent );
// Due to the Y axis direction, we must mirror the bounding box, relative to the
// text position:
MIRROR( begin.y, pos.y );
MIRROR( end.y, pos.y );
transform = parentSymbol->GetTransform();
}
transform = static_cast<SCH_SYMBOL*>( m_parent )->GetTransform();
bbox.SetOrigin( transform.TransformCoordinate( begin ) );
bbox.SetEnd( transform.TransformCoordinate( end ) );