Fix bad comparison

This commit is contained in:
Mael Rouxel-Labbé 2023-06-26 17:10:06 +02:00
parent 99f43c0cae
commit fbecb18f49
1 changed files with 2 additions and 1 deletions

View File

@ -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;