From 5e11fe8faaedeb0f190c64d1161011ea9ffcff7e Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 10 Sep 2020 16:36:54 +0200 Subject: [PATCH] Update Surface_mesher/include/CGAL/IO/Complex_2_in_triangulation_3_to_medit.h Co-authored-by: Laurent Rineau --- .../include/CGAL/IO/Complex_2_in_triangulation_3_to_medit.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Surface_mesher/include/CGAL/IO/Complex_2_in_triangulation_3_to_medit.h b/Surface_mesher/include/CGAL/IO/Complex_2_in_triangulation_3_to_medit.h index 23921d34683..33d9c7b4c04 100644 --- a/Surface_mesher/include/CGAL/IO/Complex_2_in_triangulation_3_to_medit.h +++ b/Surface_mesher/include/CGAL/IO/Complex_2_in_triangulation_3_to_medit.h @@ -63,8 +63,9 @@ output_surface_facets_to_medit (std::ostream& os, const C2t3& c2t3) vit != tr.finite_vertices_end(); ++vit) { - if(V.find(vit) != V.end()){ - V[vit] = inum++; + auto it = V.find(vit); + if(it != V.end()){ + *it = inum++; Point p = static_cast(vit->point()); os << p.x() << " " << p.y() << " " << p.z() << " 0 \n"; }