From 932bed278eedc544b61795cbda7729b31158cf6c Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Sat, 6 Nov 2021 13:18:19 +0100 Subject: [PATCH] Fix EDA_RECT inflation zeroing width when it was negative Fixes https://gitlab.com/kicad/code/kicad/issues/9063 --- common/eda_rect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/eda_rect.cpp b/common/eda_rect.cpp index 0b3e1c42ce..6522fb6cd3 100644 --- a/common/eda_rect.cpp +++ b/common/eda_rect.cpp @@ -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;