Corrected TEXTE_MODULE:GetBoundingBox() function.
This commit is contained in:
parent
9ecc593aac
commit
a4ffb065d4
|
@ -546,7 +546,6 @@ EDA_RECT EDA_RECT::Common( const EDA_RECT& aRect ) const
|
|||
wxPoint endB( std::max( aRect.GetOrigin().x, aRect.GetEnd().x ),
|
||||
std::max( aRect.GetOrigin().y, aRect.GetEnd().y ) );
|
||||
|
||||
|
||||
r.SetOrigin( wxPoint( std::max( originA.x, originB.x ), std::max( originA.y, originB.y ) ) );
|
||||
r.SetEnd ( wxPoint( std::min( endA.x, endB.x ), std::min( endA.y, endB.y ) ) );
|
||||
}
|
||||
|
|
|
@ -212,7 +212,7 @@ const EDA_RECT TEXTE_MODULE::GetBoundingBox() const
|
|||
EDA_RECT text_area = GetTextBox( -1, -1 );
|
||||
|
||||
if( angle )
|
||||
text_area = text_area.GetBoundingBoxRotated( m_Pos, m_Orient );
|
||||
text_area = text_area.GetBoundingBoxRotated( m_Pos, angle );
|
||||
|
||||
return text_area;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue