Fix compil issue.
This commit is contained in:
parent
5f8f1542f8
commit
ac7c51e2f7
|
@ -95,7 +95,7 @@ VECTOR2I SELECTION::GetCenter() const
|
||||||
for( EDA_ITEM* item : m_items )
|
for( EDA_ITEM* item : m_items )
|
||||||
center += item->GetPosition();
|
center += item->GetPosition();
|
||||||
|
|
||||||
center = center / m_items.size();
|
center = center / static_cast<unsigned>( m_items.size() );
|
||||||
return static_cast<VECTOR2I>( center );
|
return static_cast<VECTOR2I>( center );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue