Skip to content

Commit

Permalink
Merge pull request #7900 from janetournois/Polyhedron_demo-fix_double…
Browse files Browse the repository at this point in the history
…_edit-jtournois

Polyhedron demo - fix `DoubleEdit`
  • Loading branch information
lrineau committed Dec 11, 2023
2 parents ed4508c + 3fc14d8 commit 1150d5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Polyhedron/demo/Polyhedron/CGAL_double_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class DoubleValidator : public QDoubleValidator
}
QValidator::State validate ( QString & input, int & pos ) const
{
fixup(input);
return QDoubleValidator::validate(input, pos);
}
};
Expand Down Expand Up @@ -59,7 +58,7 @@ class DoubleValidator : public QDoubleValidator

void DoubleEdit::setRange(double rmin, double rmax)
{
this->validator->setRange(rmin, rmax, this->validator->decimals());
this->validator->setRange(rmin, rmax, -1);
}

double DoubleEdit::getValue()
Expand Down
2 changes: 2 additions & 0 deletions Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ void Mesh_3_plugin::mesh_3(const Mesh_type mesh_type,
ui.approx->setRange(diag * 10e-7, // min
diag); // max
ui.approx->setValue(approx);
ui.approx->setToolTip(tr("Approximation error: in [%1; %2]")
.arg(diag * 10e-7).arg(diag));

ui.protect->setEnabled(features_protection_available);
ui.protect->setChecked(features_protection_available);
Expand Down

0 comments on commit 1150d5a

Please sign in to comment.