check vector size before access

This commit is contained in:
Sven Oesau 2015-07-16 11:16:39 +02:00
parent 86a5b78992
commit d2ad8565a3
1 changed files with 2 additions and 0 deletions

View File

@ -499,6 +499,8 @@ namespace CGAL {
bool is_same(const Shape_base *other) const {
if (!other)
return false;
if (other->m_indices.size() == 0)
return true;
const std::size_t num = 9;
int score = 0;