Fix a mistake in EDA_RECT::Intersects.

This commit is contained in:
dsa-t 2022-07-02 23:10:16 +03:00 committed by Mike Williams
parent 0ba9ae9fb7
commit e2e574c84d
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ bool EDA_RECT::Intersects( const EDA_RECT& aRect ) const
int right = std::min( me.m_pos.x + me.m_size.x, rect.m_pos.x + rect.m_size.x );
// calculate the upper common area coordinate:
int top = std::max( me.m_pos.y, aRect.m_pos.y );
int top = std::max( me.m_pos.y, rect.m_pos.y );
// calculate the lower common area coordinate:
int bottom = std::min( me.m_pos.y + me.m_size.y, rect.m_pos.y + rect.m_size.y );