Restore original SCH_TEXT::GetBoundingBox()

Didn't intend to commit this, it was a mistake.
This commit is contained in:
Mikolaj Wielgus 2021-12-02 16:43:19 +01:00
parent 46a8d23378
commit 4ba110e1ec
1 changed files with 2 additions and 3 deletions

View File

@ -564,7 +564,7 @@ const EDA_RECT SCH_TEXT::GetBoundingBox() const
{
EDA_RECT rect = GetTextBox();
if( GetTextAngle() != 0 )
if( GetTextAngle() != 0 ) // Rotate rect.
{
wxPoint pos = rect.GetOrigin();
wxPoint end = rect.GetEnd();
@ -574,10 +574,9 @@ const EDA_RECT SCH_TEXT::GetBoundingBox() const
rect.SetOrigin( pos );
rect.SetEnd( end );
rect.Normalize();
}
rect.Normalize();
return rect;
}