From 2ecd5ac909d83179e89d5b3368fd86709e4ebd7b Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Thu, 16 Dec 2021 08:13:14 +0100 Subject: [PATCH] Fix calculation of selection center Fixes https://gitlab.com/kicad/code/kicad/issues/9998 --- common/tool/selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tool/selection.cpp b/common/tool/selection.cpp index c1468aebf6..65e7ea6386 100644 --- a/common/tool/selection.cpp +++ b/common/tool/selection.cpp @@ -95,7 +95,7 @@ VECTOR2I SELECTION::GetCenter() const for( EDA_ITEM* item : m_items ) center += item->GetPosition(); - center = center / static_cast( m_items.size() ); + center = center / static_cast( m_items.size() ); return static_cast( center ); }