From ac7c51e2f77c10c0f629965a5407de870d27d9a1 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 3 Dec 2021 16:48:21 +0100 Subject: [PATCH] Fix compil issue. --- 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 e25aacf76e..f0f67c1d83 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 / m_items.size(); + center = center / static_cast( m_items.size() ); return static_cast( center ); }