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