From fbecb18f49ffd4f86d3301fe54b2a739b1a0ed7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Mon, 26 Jun 2023 17:10:06 +0200 Subject: [PATCH] Fix bad comparison --- Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h b/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h index e7877ab6635..101c1d3a337 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h +++ b/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h @@ -866,7 +866,8 @@ smart_insert_point(const Bare_point& p, Weight w, int dim, const Index& index, if ( cwsr(it_wp, - sq_d) == CGAL::SMALLER ) { bool special_ball = false; - if(minimal_weight_ != Weight() && sq_d > minimal_weight_) { + if(minimal_weight_ != Weight() && sq_d < minimal_weight_) + { sq_d = minimal_weight_; w = minimal_weight_; special_ball = true;