Restore original SCH_TEXT::GetBoundingBox()
Didn't intend to commit this, it was a mistake.
This commit is contained in:
parent
46a8d23378
commit
4ba110e1ec
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue