Fix compil issue.

This commit is contained in:
jean-pierre charras 2021-12-03 16:48:21 +01:00
parent 5f8f1542f8
commit ac7c51e2f7
1 changed files with 1 additions and 1 deletions

View File

@ -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<unsigned>( m_items.size() );
return static_cast<VECTOR2I>( center );
}