From 33e5f52486de9904d2dda28fdfef3eec0b5b6e11 Mon Sep 17 00:00:00 2001 From: Remy Thomasse Date: Tue, 27 Jan 2015 16:03:01 +0100 Subject: [PATCH] fix iterator bug in convex_hull_in_disc_2.h trivial fix for master --- Generator/include/CGAL/random_convex_hull_in_disc_2.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Generator/include/CGAL/random_convex_hull_in_disc_2.h b/Generator/include/CGAL/random_convex_hull_in_disc_2.h index 413fe7df053..2c435806efc 100644 --- a/Generator/include/CGAL/random_convex_hull_in_disc_2.h +++ b/Generator/include/CGAL/random_convex_hull_in_disc_2.h @@ -220,9 +220,8 @@ void random_convex_hull_in_disc_2(std::size_t n, double radius, std::list::iterator it = l.begin(); - typename std::list

::iterator it2 = ++it; + typename std::list

::iterator it2=++l.begin(); for (; it != l.end(); ++it, Cyclic_increment(it2, l)) { // computation of annulus typename Traits::Segment_2 s(*it, *it2);