Browse Source

Restore original SCH_TEXT::GetBoundingBox()

Didn't intend to commit this, it was a mistake.
6.0.7
Mikolaj Wielgus 4 years ago
parent
commit
4ba110e1ec
  1. 5
      eeschema/sch_text.cpp

5
eeschema/sch_text.cpp

@ -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…
Cancel
Save