From 3e91d6f5d4364aeeddb3484a45947bc6787cd3ab Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Wed, 30 Aug 2017 11:12:33 +0200 Subject: [PATCH] Fix vector initialization --- .../include/CGAL/Classification/Planimetric_grid.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Classification/include/CGAL/Classification/Planimetric_grid.h b/Classification/include/CGAL/Classification/Planimetric_grid.h index 6f2a76e4764..1bafc45ae56 100644 --- a/Classification/include/CGAL/Classification/Planimetric_grid.h +++ b/Classification/include/CGAL/Classification/Planimetric_grid.h @@ -228,11 +228,10 @@ public: for (std::size_t x = 0; x < m_width; ++ x) for (std::size_t y = 0; y < m_height; ++ y) { - m_has_points[x * m_height + y] - = (m_lower_scale->has_points(x*2, y*2) - || m_lower_scale->has_points(x*2, y*2 + 1) - || m_lower_scale->has_points(x*2 + 1, y*2 + 1) - || m_lower_scale->has_points(x*2 + 1, y*2)); + m_has_points.push_back ((m_lower_scale->has_points(x*2, y*2) + || m_lower_scale->has_points(x*2, y*2 + 1) + || m_lower_scale->has_points(x*2 + 1, y*2 + 1) + || m_lower_scale->has_points(x*2 + 1, y*2))); } // std::cerr << "Grid size = " << width() << " " << height() << std::endl; }