Corrected TEXTE_MODULE:GetBoundingBox() function.

This commit is contained in:
Maciej Suminski 2015-08-07 18:17:51 +02:00
parent 9ecc593aac
commit a4ffb065d4
2 changed files with 1 additions and 2 deletions

View File

@ -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 ) ) );
}

View File

@ -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;
}