From f80bbf517c6955532bc7d50a0ff14fb7b9d9cee6 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Fri, 30 Sep 2016 10:35:25 +0200 Subject: [PATCH] Bugfix: creation of pmap should return false if pmap already exists --- Surface_mesh/include/CGAL/Surface_mesh/Properties.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Properties.h b/Surface_mesh/include/CGAL/Surface_mesh/Properties.h index e1c48411b78..4f8a544c8c4 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Properties.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Properties.h @@ -276,7 +276,10 @@ public: { std::pair, bool> out = get(name, i); if (out.second) - return out; + { + out.second = false; + return out; + } } // otherwise add the property