Fix EDA_RECT inflation zeroing width when it was negative

Fixes https://gitlab.com/kicad/code/kicad/issues/9063
This commit is contained in:
Mikolaj Wielgus 2021-11-06 13:18:19 +01:00 committed by Jeff Young
parent b572781a8a
commit 932bed278e
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ EDA_RECT& EDA_RECT::Inflate( wxCoord dx, wxCoord dy )
}
else // size.x < 0:
{
if( m_size.x > -2 * dx )
if( m_size.x > 2 * dx )
{
// Don't allow deflate to eat more width than we have,
m_pos.x -= m_size.x / 2;